sql server 2000 sql 语句问题

2024-12-13 01:21:46
推荐回答(2个)
回答1:

sql="select * from mytable where time="&creatime&""
改成sql="select * from mytable where time='"&creatime&"'"
或者sql="select * from mytable where time=getdate()"

回答2:

少了引号了吧