ÄÜÔÚDataTable Ö´ÐÐ ¸´ÔÓSQLÓï¾äÂð£¿SQL code: create table test ( col varchar(100) ) insert test select '2009-1-1' union select '2009-10-2' union select 'sadsa' union select '20091' go select * from test where ISDATE(col)<>1 /* col ---------------------------------------------------------------------------------------------------- 20091 sadsa*/
ɸѡ²»ºÏ·¨Êý¾Ý Èç¹ûÊÇɸѡ²»ºÏ·¨µÄÊý×ÖÊý¾Ý ²ÉÓà isnumeric SQL code: select * from tb where isdate(ÈÕÆÚ×Ö¶Î)=1