分享你我的心得.
共乘一片美好网络.

sql转转后语句时间问题

select id,adduser,[time] from [news] where adduser=’"&username&"’ and [time]>#"&ymd1&"# and [time]<#"&ymd2&"# order by id desc

转换后修改为下面即可,把#转换为’

select id,adduser,[time] from [news] where adduser=’"&username&"’ and [time]>’"&ymd1&"’ and [time]<‘"&ymd2&"’ order by id desc

赞(0)
未经允许不得转载:小叶白龙博客 » sql转转后语句时间问题
分享到: 更多 (0)

评论 37

评论前必须登录!