Manipulating Table Data
P35 & P38: INSERT INTO
SELECT * FROM titles WHERE partnum = 39906
INSERT INTO titles (partnum, bktitle, devcost, slprice, pubdate)
VALUES('39906', 'VC++ HELLO WORLD', NULL, 50, '1999-06-01')
One table to another Table
INSERT INTO customers (custnum, custname, address, city,state,zipcode)
select custnum, custname, address, city,state,zipcode from potential_customers
where state ='ca'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment