a表字段:code, name(主键)
b表字段:num, name(主键), age
如何将a表和b表通过主键连接后,然后将age字段更新到code字段上?
祝你成功!
追问请问:如果b表的name是”计算机(数据库)“这种形式,而a表的name是”计算机“这种形式,我该怎么去掉"(数据库)",然后使2个表连接?
追答试试:
update a set code=age祝你成功!
追问。。。。。那个“计算机”只是个案例,比如计算机科学(xxxx),电子商务(xxxxxxx)这样的。。。
追答试试:
update a set code=age祝你成功!
追问我采用了如下方法:
不知是否有问题??
可以,这样更精确。