/////////////////////目地:ZDJZ_DIS中 name字段有重复的值,删除重复的值 DELETE * FROM ZDJZ_DIS WHERE NAME IN (select NAME from ZDJZ_DIS group by NAME having count(NAME) >1); 上面的做法会删除掉所有的相同的值,包括你想要的,只要重复就删除 DELETE * FROM ZDJZ_DIS WHERE ID in (select min(ID) from ZDJZ_DI
处理json字段,可以用json_extract函数: select * from (select json_extract(ext_value,'$.high')+0 highx,batch_id from batch_ext_1 where ext_type=19 ) a where a.highx>15000000000 将json字段中的String值转为数字型,可以用+0操作,比如上面语句中 json_extract(ext_value,'$.high')+0 highx 最终会变成数