日期:2014-05-17  浏览次数:20880 次

这么奇怪 关于添加数据
mysql= "insert   into   leave   values( ' "+conname+ " ', ' "+content+ " ', ' "+session( "username ")+ " ', ' "+no+ " ', ' "+addtime+ " ') "

用上面这句能添加数据

用下面这句就不能添加的

mysql= "insert   into   leave(topicname,content,username,path,time)   values( ' "&conname& " ', ' "&content& " ', ' "&session( "username ")& " ', ' "&no& " ', ' "&addtime& " ') "

按理说我写得也没错       错在哪呢

我必须用下面的添加    

望高手看下


------解决方案--------------------
mysql= "insert into leave(topicname,content,username,path,[time]) values( ' "&conname& " ', ' "&content& " ', ' "&session( "username ")& " ', ' "&no& " ', ' "&addtime& " ') "