SQL语言高手请进,追加高分

来源:百度知道 编辑:UC知道 时间:2024/05/22 19:25:57
在Authorware中对数据库进行查询
查询条件:
在tiku 表中查询xuehao=1001
并且tihao=5的SQL语句是什么
急急急,在线等待!!!!!!!!!
一楼的说清楚点
中间的and好使吗?
如果xuehao 保存在变量xuehao中
考号保存在变量kaohao中
SQL语句应该是什么?

"select * from tiku where xuehao='"^xuehao^"' and tihao='"^tihao^"'"

你问题说的不是很清楚,也只能帮你成这样了~!
declare @xuehao as bigint,@kaohao as bigint
select @xuehao=xuehao,@kaohao=考号,* from tiku where xuehao=1001 and tihao=5

sql语句在什么程序里面大多都是统一的.select * from tiku where xuehao=1001 and tihao=5

use Authorware
select * from tiku where xuehao=1001 and tihao=5 and kaohao = ……