dingDanSql/共享订单.sql
2025-06-04 17:01:20 +08:00

59 lines
2.6 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

select * FROM testdb.bike2025 a
select
right(a.,11) ,
SUBSTRING_INDEX(a., '', 1) ,
replace(replace(REGEXP_SUBSTR(a., '.*?'),'',''),'','') ,
a.,
replace(a.,'','') ,
a.,a.,
replace(a.,'','') ,
replace(a.,'','') ,
a.,
replace(a.,'公里','') ,
a.,a.
FROM testdb.bike2025 a
select c.ID,replace(c.,'null','') from
(select a.ID as ID,a. as FROM testdb.bike2025 a
UNION
select b.ID as ID,b. as FROM testdb.bike2025 b) c
--
-- REPLACE INTO testdb.tingchequ(骑行站点ID, 站点地址)
-- select c.骑行站点ID,replace(c.站点地址,'null','') 站点地址 from
-- (select a.骑行开始站点ID as 骑行站点ID,a.骑行开始站点 as 站点地址 FROM testdb.bike2025 a
-- UNION
-- select b.骑行结束站点ID as 骑行站点ID,b.骑行结束站点 as 站点地址 FROM testdb.bike2025 b) c
SELECT * FROM testdb.tingchequ WHERE IS NULL OR IS NULL
select SUBSTRING_INDEX(a.,'',1) from testdb.tingchequ a WHERE IS NULL OR IS null
update testdb.tingchequ a set a. = SUBSTRING_INDEX(a.,'',1) WHERE IS NULL OR IS NULL
update testdb.tingchequ a set a. = '蟠龙枢纽站' WHERE IS NULL and IS null and = '--3'
insert ignore INTO testdb.tingchequ(ID, )
select c.ID,replace(c.,'null','') from
(select a.ID as ID,a. as FROM testdb.bike2025 a
UNION
select b.ID as ID,b. as FROM testdb.bike2025 b) c
SELECT b.ID,b.,c.,c., b.ID,b.,d.,d.
FROM testdb.bike2025 b, testdb.tingchequ c, testdb.tingchequ d
where b.ID = c.ID
and b.ID = d.ID
-- delete from testdb.tingchequ a where a.经度 not like '108%'
SELECT count(b.),b.ID,b.,c.,c., b.ID,b.
FROM testdb.bike2025 b, testdb.tingchequ c
where b.ID = c.ID
and c. = '108.254643'