一个sql中的insert问题 timesent 表中的是smalldate改为 DateTime 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不行呀,这表中定义好了的,在sql中,怎么能改,难道只能改成dtatime吗 用sql server自己的日期函数吧:getdate() 不行呀,我要在vb中入sql中加,要vb中的当前时间要 re,我是谁,不是,提示sql servr在上下文中不允许使用' ss',此处只能使用常量,变量或表达式。不允许使用列名拷,我ss, 是字符型的呀,为什么,是一个变量呀。。 更改为str = "insert MessageForProcessed TimeSent,PortNo,PhoneNo,SMSType,Body) values('" & ss & "` ,`TSport`,`" & Trim(CmbPhont.Text) & " `,`1`,`" & Trim(TxtBody.Text) & "`)"你的ss是vb中的一个变量?其实 ss = cstr(now())好像就可以个去纪录的时候format一下就好了 现解决了,增增没有分给你,不好意思,下次给你吧,我按bbwolf的方法搞定了,多谢大家 ss=now()insert MessageForProcessed (TimeSent,PortNo,PhoneNo,SMSType,Body) values(#" & ss & "# ,`TSport`,`" & Trim(CmbPhont.Text) & " `,`1`,`" & Trim(TxtBody.Text) & "`)" 用vb代码能登录这个网站吗? 关于VB使用MSComm控件连接8台设备如何用VB程序设置站号? 请问 VB 中如何通过ole 自动化来控制 FireFox ? 对Web1_ProgressChange和Web1_DocumentComplete进行监控的结果如下,能不能说Progress=ProgressMax=0是网页下载完毕??? 如何让两台电脑同步显示文字 VB is the child of the Basic? VB中这样的一个问题……………… 怎样操作配直文件 关于资源文件的使用??? VB中ConvertDriveType报错 如何形成一个矩阵 关于USB接口编程。。。
不是,提示sql servr在上下文中不允许使用' ss',此处只能使用常量,变量或表达式。不允许使用列名
拷,我ss, 是字符型的呀,为什么,是一个变量呀。。
str = "insert MessageForProcessed TimeSent,PortNo,PhoneNo,SMSType,Body) values('" & ss & "` ,`TSport`,`" & Trim(CmbPhont.Text) & " `,`1`,`" & Trim(TxtBody.Text) & "`)"
你的ss是vb中的一个变量?
其实 ss = cstr(now())好像就可以个
去纪录的时候format一下就好了
insert MessageForProcessed (TimeSent,PortNo,PhoneNo,SMSType,Body) values(#" & ss & "# ,`TSport`,`" & Trim(CmbPhont.Text) & " `,`1`,`" & Trim(TxtBody.Text) & "`)"