我有以下 SQL 查询:
INSERT INTO site_city_address (`cityName`, `cityCode`, `stateId`) VALUES (SELECT a.city, a.cityCode, b.stateId
FROM site_address_dropdown a INNER JOIN site_state_address b
ON a.state = b.stateName);
我知道这可能是错的。我要做的是将a.city、a.cityCode 和b.stateId 的值作为cityName、cityCode 和stateId 插入到shopious_city_address 中。我该怎么做?