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

来源:互联网 发布:淘宝流量来源怎么获取? 编辑:程序博客网 时间:2024/06/07 05:23
UPDATE temp_ent_lyew t1,temp_ent_lyew t2 SET t1.latitude=t1.longitude,t2.longitude=t2.latitudewhere 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;

 

原创粉丝点击