方法一:建一个存储过程
方法二:会话变量
set @varname = value; insert into tbl_name(col1,col2,col3,col_varname) values(val1,val2,val3,@varname),(val21,val22,val23,@varname),(val31,val32,val33,@varname)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/3942.html
方法一:建一个存储过程
方法二:会话变量
set @varname = value; insert into tbl_name(col1,col2,col3,col_varname) values(val1,val2,val3,@varname),(val21,val22,val23,@varname),(val31,val32,val33,@varname)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/3942.html