[AI SCHOOL 5기] SQL 프로그래밍 실습 - SQL CRUD
SELECT 1 SELECT 10 / 5, 2 * 4; 1 SELECT trackid, name FROM tracks; 1 SELECT * FROM tracks; INSERT 1 INSERT INTO artists (name) VALUES('Bud Powell'); 1 2 3 4 5 6 7 8 9 10 11 script = """ INSERT INTO artists (name) VALUES ("?"); """ data = [ ("Buddy Rich"), ("Candido"), ("Charlie Byrd") ] cur.executemany(script, data) 1 2 3 4 5 6 7 SELECT ArtistId, Name FROM Artists ORDER BY ArtistId DESC; UPDATE 1 UPDATE employees SET lastname = 'Smith' WHERE employeeid = 3; 1 2 3 4 5 6 UPDATE employees SET city = 'Toronto', state = 'ON', postalcode = 'M5P 2N7' WHERE employeeid = 4; 1 2 UPDATE employees SET email = UPPER(firstname || "....