環境
問題:
select datediff(day
select * from T_SUB
where item_local_code=
and datediff(day
and (sub_del_flag<>
select * from t_sub
where item_local_code=
and isDate(sub_para)=
create table tb(
item_local_code char(
sub_del_flag int
sub_para varchar(
constraint PK_t primary key(sub_para
)
insert tb select
union all select
go
select * from (
select * from tb
where item_local_code=
and sub_del_flag<>
and isdate(sub_para)=
) A where datediff(day
go
drop table tb
/*
item_local_code sub_del_flag sub_para
服務器: 消息
從字符串轉換為 datetime 時發生語法錯誤
From:http://tw.wingwit.com/Article/program/net/201311/12521.html