用户xASEW5095(提问者)SQL(\"WCFR\", \"SELECT count(*) FROM TAX_TIME WHERE SEASON_MES=\'\"+A4+\"\' and COM_NAME= \'\"+B4+\"\' TAB_NAME=\'\"+Z4+\"\'\",1,1)>0,采用这种方法数据符合条件的数据保存不进去。
用户xASEW5095(提问者)SQL(\"WCFR\", \"SELECT count(*) FROM TAX_TIME WHERE SEASON_MES=\'\"+A4+\"\' and COM_NAME= \'\"+B4+\"\' and TAB_NAME=\'\"+Z4+\"\'\",1,1)>0,采用这种方法数据符合条件的数据保存不进去,加了个and也是数据不进入数据库。
snrtuemc 回复 用户xASEW5095(提问者)条件改成SQL(\\\"WCFR\\\", \\\"SELECT count(*) FROM TAX_TIME WHERE SEASON_MES=\\\'\\\"+A4+\\\"\\\' and COM_NAME= \\\'\\\"+B4+\\\"\\\' and TAB_NAME=\\\'\\\"+Z4+\\\"\\\'\\\",1,1)<0呢
用户xASEW5095(提问者) 回复 snrtuemc\"SELECT count(*) FROM TAX_TIME WHERE SEASON_MES=\\\'\\\"+A4+\\\"\\\' and COM_NAME= \\\'\\\"+B4+\\\"\\\' and TAB_NAME=\\\'\\\"+Z4+\\\"\\\',这个语句用数据集查询是可以的,是可以显示数量的,大于或小于都有试,还是存不进去数据