Here is my code but I keep getting the error message Syntax error:
Unexpected keyword SET at [4:1]
SELECT start_station_id
FROM `cyclist-bike-share-success.Trip_data_2022_.April_2022`,
UPDATE `cyclist-bike-share-success.Trip_data_2022_.April_2022`,
SET start_station_id='unknown',
WHERE start_station_id IS NULL
Any advice?
Try to read the documentation about how to write queries.
For your question, try to write like below:
SELECT start_station_id
FROM `cyclist-bike-share-success.Trip_data_2022_.April_2022`;
UPDATE `cyclist-bike-share-success.Trip_data_2022_.April_2022`
SET start_station_id='unknown'
WHERE start_station_id IS NULL
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.