第一种写法
INSERT INTO PERS
VALUES (12, ‘Harris‘, 20, ‘Sales‘, 5, 18000, 1000, ‘1950-1-1‘)
第二种写法
INSERT INTO PERS (NAME, JOB, ID)
VALUES (‘Swagerman‘, ‘Prgmr‘, 500),
(‘Limoges‘, ‘Prgmr‘, 510),
(‘Li‘, ‘Prgmr‘, 520)
第三种写法
INSERT INTO PERS (ID, NAME, DEPT, JOB, YEARS, SALARY)
SELECT ID, NAME, DEPT, JOB, YEARS, SALARY
FROM STAFF
WHERE DEPT = 38
第四种写法
INSERT INTO PERS (ID, NAME, JOB, DEPT, SALARY)
VALUES (410, ‘Perna‘, ‘Sales‘, 20, 20000)
时间: 2024-10-12 17:24:47