求助代码,下面这个是名为w_oper_k1的登陆窗口界面,用到的工具是PB,要实现的功能是选择不同的用户(企业
或求职者)登录后进入不同的窗口。当企业用户登入后进入窗口w_main2,当求职者用户登入后进入窗口w_main3。企业用户和求职者的登录号和密码不在同一张表中,分别在建好...
或求职者)登录后进入不同的窗口。当企业用户登入后进入窗口w_main2,当求职者用户登入后进入窗口w_main3。企业用户和求职者的登录号和密码不在同一张表中,分别在建好的PB数据库的名为company 和student表格中。“确认”按钮cb_1的sql代码怎么写???谢谢
展开
1个回答
展开全部
//帮帮你吧
string ls_id,ls_psw
long ll_count = 0
ls_id = sle_1.text
ls_psw = sle_2.text
if rb_1.checked then
select count(*)
into :ll_count
from company
where id = :ls_id and password = :ls_psw ;
if ll_count > 0 then
open(w_main2)
close(parent)
end if
else
select count(*)
into :ll_count
from student
where id = :ls_id and password = :ls_psw ;
if ll_count > 0 then
open(w_main3)
close(parent)
end if
end if
string ls_id,ls_psw
long ll_count = 0
ls_id = sle_1.text
ls_psw = sle_2.text
if rb_1.checked then
select count(*)
into :ll_count
from company
where id = :ls_id and password = :ls_psw ;
if ll_count > 0 then
open(w_main2)
close(parent)
end if
else
select count(*)
into :ll_count
from student
where id = :ls_id and password = :ls_psw ;
if ll_count > 0 then
open(w_main3)
close(parent)
end if
end if
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询