select 1 from information_schema.columns where table_name='xxx' and column_name='xxxxx';是可以查出表中是否有某个字段,由于这句语句是在 test.sql中写的,请问有什么办法判断他的返回值
即
if ( 查询字段) then
.....
else
.....
end if
即
if ( 查询字段) then
.....
else
.....
end if
alter table Stream modify column SourceIP VARCHAR(65);if (Stream是否有unicast字段) then
update Stream SET unicast=1 where ISNULL(unicast);
end if
是的,我是想用bat去调用 能执行这个sql文件的exe,但是不知道这个sql文件怎么写,另外要调哪个exe
如果实在不行可以用mysql-front去执行sql文件