MYSQL中新增一条记录时,字段值得处理方法解决方法

MYSQL中新增一条记录时,字段值得处理方法

打个比方

insert into tableA

(Id,Name)values

(值1,值2)

值1是传的参数,ID只是个比方..

值2是tableB中字段的值

求写法

不好描述的话,像我这样把写法体现出来就行,谢谢了~



insert into tableA

select @t,zhi2 from tableB;




insert into tableA

(Id,Name)

select @参数,值2 from tableB where id=3

MYSQL中新增一条记录时,字段值得处理方法解决方法

相关文章:

你感兴趣的文章:

标签云: