Reply to simple SQL question to insert records in an existing table - Newbie

Your name:

Reply:


Posted by pamela fluente on 02/20/07 15:31

Hi, I would like to know how to modify the following selects
so that - assuming that NewTable already exists - the result of the
SELECT is appended to the existing table.

If possible I need the appropriate changes for both the 2 syntax
below.

-1-
SELECT * INTO NewTable FROM (
SELECT
S.OrderID AS "OrderID",
S.CustomerID AS "CustomerID"
FROM
Source1 S
) tmp

-2-
CREATE TABLE NewTable
SELECT
S.OrderID AS "OrderID",
S.CustomerID AS "CustomerID"
FROM
Source1 S


Thank you very much for any help,

Pam

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация