您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

用sql脚本安全添加字段_MySQL

2026/1/2 4:14:47发布14次查看
bitscn.com
用sql脚本安全添加字段
create procedure safe_add_col(tname varchar(50),cname varchar(50)) 
begin
    set @a = '';
    select column_name into @a
        from information_schema.columns
    where table_name = tname and column_name = cname;
if @a = '' then
        alter table tbl_application_source_down add import_batch varchar(14) default '' not null;
  end if;
end;
call safe_add_col('user','real_name');
drop procedure if exists safe_add_col;    
bitscn.com
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product