注册 登录
编程论坛 SQL Server论坛

[求助]SQL简单问题

XieHang 发布于 2007-05-29 15:34, 539 次点击
在线急求~~:
我在用Delphi进行编程的时候遇到这个SQL语句,
select count(*) from SC,Cource,student where sc.cno=cource.cno and Cource.cname=:cname
请问Cource.cname=:cname是什么意思啊?
3 回复
#2
bygg2007-05-29 16:36
:cname  这个是变量.
#3
从小到大2007-05-29 21:14
本人也不懂 是不是和@cname一样哦 猜测
#4
slash19842007-05-30 08:43
delphi 中好像不是这个用法!!
一般都是
adodataset1.commandtext='select count(*) from SC,Cource,student where sc.cno=cource.cno and Cource.cname='+trim(cname)
1