sql = sql & "and 诗名='" & Trim(Text2.Text) & "'"是什么意思

发布网友 发布时间:4小时前

我来回答

2个回答

热心网友 时间:2分钟前

拼接一个sql语句
<br>如果sql=select * from [诗表] where id=7
<br>test2.text="早发白帝城"
<br>那么sql = sql & "and 诗名='" & Trim(Text2.Text) & "'"
<br>就是sql="select * from [诗表] where id=7 and 诗名="'早发白帝城'"

热心网友 时间:3分钟前

这句话好象少个双引号吧

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com