当前位置:Gxlcms > 数据库问题 > 交换数据表两个字段值 | SQL

交换数据表两个字段值 | SQL

时间:2021-07-01 10:21:17 帮助过:47人阅读

temp_ent_lyew t1,temp_ent_lyew t2 SET t1.latitude=t1.longitude,t2.longitude=t2.latitude where t1.latitude is not null and t1.longitude is not null and t2.latitude is not null and t2.longitude is not null and t1.latitude !=‘‘ and t1.longitude !=‘‘ and t2.latitude !=‘‘ and t2.longitude !=‘‘ and t1.longitude<100 and t2.latitude>100;

 

交换数据表两个字段值 | SQL

标签:div   update   upd   logs   pre   交换   font   数据   where   

人气教程排行