VB+ACCESS+SYBASE
insert into (column1,column2,column3)Select st.column1,st.column2,st.column3 from st sybase_table in[ODBC;DSN=AODB;UID=SA;PWD=;]
where colum1=convert(char,getdate(),110)
where colum1='2007-1-7'
where colum1=format(now,"yyyy-mm-dd")
以上三种方式在数据库里执行都没有问题,就是程序中EXECUTE执行检索不出任何数据,但如果WHERE是字符串或者INT类型的就没问题??到底哪里写错了?
insert into (column1,column2,column3)Select st.column1,st.column2,st.column3 from st sybase_table in[ODBC;DSN=AODB;UID=SA;PWD=;]
where colum1=convert(char,getdate(),110)
where colum1='2007-1-7'
where colum1=format(now,"yyyy-mm-dd")
以上三种方式在数据库里执行都没有问题,就是程序中EXECUTE执行检索不出任何数据,但如果WHERE是字符串或者INT类型的就没问题??到底哪里写错了?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货