.

ASP+ACCESS数据库查询代码
分类:电脑知识 发表于:2008-03-26 11:02:21 评论(0)


如果是查数字型的语法应该是

sql="select * from shuju where id=数字"

如果是变量应该是

sql="select * from shuju where id="&变量

如果是字符串型的应该是

sql="select * from shuju where 列名='字符串'"

字符串变量

sql="select * from shuju where 列名='"&字符串变量&" '

查询询日期的语法应该是

sql="select * from shuju where 列名=#日期#"

如果是日期变量

日期变量=#2007-11-19# '此处不可少#号

sql="select * from typecontent where 列名=#"&日期变量&"#"

  
邮箱: 密码: