Create New Table by Selecting Data from Other Tables with CREATE TABLE AS पैदा टेबल के रूप में साथ अन्य टेबल्स से डेटा का चयन करके नई तालिका बनाएँ

By using SQL data manipulation statement, a new, temporary, backup or regular table can be created and filled or inserted with data from another table or tables retrieved by SELECT statement. एसक्यूएल डेटा हेरफेर बयान, एक नया, अस्थायी बैकअप या नियमित रूप से तालिका का उपयोग करके और बनाया जा सकता है भर या किसी अन्य तालिका का चयन करें या बयान से लिया गया तालिका से डेटा के साथ डाला. The SQL data manipulation language is CREATE TABLE AS which can be used to create a new table built from contents of result set by a query on a table that already exists within the database. एसक्यूएल आंकड़ों में गड़बड़ी पैदा टेबल जो भाषा के रूप में एक नई परिणाम की सामग्री एक मेज है कि पहले से ही डेटाबेस के भीतर मौजूद है पर क्वेरी के द्वारा निर्धारित से निर्मित तालिका बनाने के लिए किया जा सकता है. Both the column types, and row data for the new table, come from the SELECT command specified by select. दोनों प्रकार के स्तंभ है, और नए के लिए पंक्ति डेटा तालिका, का चयन करें का चयन करें द्वारा निर्दिष्ट कमांड से आते हैं.

CREATE TABLE AS has the following syntax or synopsis in simple form: पैदा टेबल के रूप में निम्नलिखित वाक्य रचना या सरल रूप में सार है:

CREATE TABLE new_table_name [ ( column [, ...] ) ] AS SELECT [ ( column [, ...] ) ] FROM existing table_name पैदा टेबल new_table_name [(स्तम्भ [...])] के रूप में चयन करें [(स्तम्भ [...])] से मौजूदा table_name

The SELECT statement can be in a complex form where data is been retrieved from several tables. का चयन करें बयान एक जटिल जहां कई डेटा तालिका से लिया गया है के रूप में हो सकता है. For the new table, column names can be specified by including the column names in a comma-delimited list. नई सारणी के लिए, स्तंभ नाम एक अल्पविराम सीमांकित-सूची में स्तंभ नाम शामिल करके निर्दिष्ट किया जा सकता है. Very important point to take note is that there should be the same number of columns specified in the column list preceding the AS clause (optional, if specified) for new table as the number of target columns that are returned by the select statement. बहुत महत्वपूर्ण बात ध्यान रखने के लिए है कि वहाँ कॉलम की ही संख्या में स्तंभ के रूप में खंड पूर्ववर्ती सूची में निर्दिष्ट किया जाएगा (वैकल्पिक है, अगर निर्दिष्ट) लक्ष्य कॉलम की संख्या चुनें बयान से लौट रहे हैं के रूप में नई सारणी के लिए चाहिए. If the optional list of columns in parentheses of new table contains different number of rows than the rows the SELECT statement returns, the following error message will be displayed: यदि कॉलम के नए सारणी के कोष्ठकों में वैकल्पिक सूची पंक्तियों का चयन करें बयान लौटता है, तो निम्नलिखित त्रुटि संदेश प्रदर्शित किया जाएगा से अलग पंक्तियों की संख्या शामिल है:

ERROR: CREATE TABLE/AS SELECT has mismatched column count त्रुटि: टेबल बनाएँ, के रूप में चयन करें स्तंभ गिनती बेमेल है

In its simplest form, CREATE TABLE AS statement will create a complete backup of an existing table including all columns and data simply by using the statement CREATE TABLE new_table_name AS SELECT * FROM existing_table_name . इसके सरलतम रूप में बनाएँ, टेबल के रूप में बयान बस का चयन करें * से existing_table_name के रूप में टेबल new_table_name पैदा बयान का उपयोग करके सभी कॉलम और डाटा सहित एक मौजूदा तालिका के एक पूर्ण बैकअप बनाएगा.

IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: पृष्ठ की मशीन है और अनुवाद प्रदान "के रूप में वारंटी के बिना है." Machine translation may be difficult to understand. मशीन अनुवाद मुश्किल से समझ सकते हो. Please refer to कृपया उल्लेख करने original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव है.


4 Responses to “Create New Table by Selecting Data from Other Tables with CREATE TABLE AS” 4 प्रतिक्रियायें बनाएँ "टेबल के रूप में साथ अन्य टेबल्स से डेटा का चयन करके नई तालिका बनाएँ"

  1. Imran Aziz Khan इमरान खान अजीज
    September 5th, 2009 14:30 5 सितम्बर 2009 14:30
    4 4

    Check your select statement again and shuffle the joining conditions in where clause. अपने बयान का चयन करें और फिर से फेरबदल की जाँच में शामिल होने की स्थिति जहां खंड. No need to change but change the position. नहीं बदलने पर स्थिति बदलने की जरूरत है. Try to equate id's first and contants latter. के समान बनाना है आईडी और पहली बाद contants की कोशिश करो. Hope this will solve your problem. इस आशा है कि आपकी समस्या का समाधान होगा.

  2. Dinesh दिनेश
    January 28th, 2009 17:46 28 जनवरी 2009 17:46
    3 3

    CREATE TABLE new_table_name [ ( column [, ...] ) ] AS SELECT [ ( column [, ...] ) ] FROM existing table_name पैदा टेबल new_table_name [(स्तम्भ [...])] के रूप में चयन करें [(स्तम्भ [...])] से मौजूदा table_name

    this query possible in MS-ACCESS or not एमएस में यह संभव क्वेरी या नहीं पहुँच

  3. tariq तारिक
    January 10th, 2008 13:31 10, 2008 13:31 जनवरी
    2 2

    Data in the table that is created using create table as select” is different from the data that is returned when the same select that creates the table is executed separately???? तालिका में डेटा के रूप में चुनें "डेटा वापस आ जाता है जब एक ही चुनें कि टेबल बनाता से अलग है टेबल बनाने का उपयोग कर बनाया है अलग से मार डाला? है?
    WE are using the tool PL/SQL Developer . हम इस उपकरण का प्रयोग कर रहे हैं पी एल / एसक्यूएल डेवलपर.
    Any idea what this problem is due to? किसी भी विचार है कि इस समस्या के कारण है?

  4. ikarus ikarus
    April 1st, 2007 03:26 1 अप्रैल 2007 03:26
    1 1

    We can do it also with the query, हम इसे क्वेरी के साथ भी कर सकते हैं,

    SELECT * INTO newtable FROM existingtable का चयन करें * जांच newtable से existingtable

    I think its a little bit shorter. मैं अपना थोड़ा सा कम लगता है.

Leave a Reply एक उत्तर दें छोड़ दो

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> आप इन टैग्स: <a href="" उपयोग title=""> <abbr title=""> <acronym कर सकते हैं <blockquote title=""> <b> cite=""> <cite> <code> <डेल DateTime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. टिप्पणी की सुविधा है विकलांग गया है की सदस्यता लें. To receive notification of latest comments posted, subscribe to सदस्यता के लिए नई टिप्पणियों की सूचना प्राप्त पोस्ट किया है, My Digital Life Comments RSS feed मेरे डिजिटल जीवन टिप्पणियाँ आरएसएस फ़ीड or या register to receive रजिस्टर प्राप्त करने के लिए new comments in daily email digest. दैनिक ईमेल में नई टिप्पणियाँ डाइजेस्ट.
Custom Search

New Articles नए लेख

Incoming Search Terms for the Article के लिए खोजें शर्तें आने अनुच्छेद

create table as select चयन के रूप में टेबल बनाना - -- create table as select from चयन के रूप में तालिका बनाने से - -- CREATE TABLE FROM SELECT पैदा टेबल से चुनें - -- create a data table एक डेटा तालिका बनाना - -- create table select तालिका बनाने चुनें - -- create table select from तालिका बनाने से चुनें - -- create table select into तालिका बनाने के चयन में - -- create new table नई तालिका बना - -- db2 create table as select db2 चयन के रूप में टेबल बनाना - -- db2 create table from select db2 चुनें से सारणी बनाना - -- create table from another table एक और तालिका से तालिका बनाना - -- create table With data आंकड़ों के साथ तालिका बना - -- oracle select into new table Oracle नई तालिका में चुनें - -- db2 create table as select from db2 चुनें रूप से तालिका बनाना - -- create table as select db2 चयन के रूप में db2 तालिका बना - -- create table as select oracle चुनें Oracle के रूप में टेबल बनाना - -- create table select * from तालिका बनाने के चयन से * - -- cREATE TABLE WITH SELECT पैदा चयन के साथ टेबल - -- sql create table from another table SQL एक तालिका से तालिका बनाना - -- oracle create table as select Oracle चयन के रूप में टेबल बनाना - -- create table from select statement चुनें बयान से मेज बना - -- create table into तालिका बनाने में - -- select into create table में तालिका बनाने चुनें - -- create table with select statement चुनें बयान के साथ टेबल बनाना - -- create data table डेटा तालिका बनाना - -- db2 create table select db2 तालिका बनाने चुनें - -- create backup table sql बैकअप की मेज एसक्यूएल बना - -- create a table using select statement एक को चुनें बयान का उपयोग टेबल बनाने के - -- db2 create table as with data db2 डेटा के साथ तालिका के रूप में पैदा - -- how to create a new table in access कैसे उपयोग में एक नई तालिका बनाने के लिए - -- select create table चुनें तालिका बना - -- create new table from select चुनें से नए तालिका बना - -- access create table as select उपयोग चयन के रूप में टेबल बनाने के - -- create table using select statement तालिका बनाने के चयन के बयान का उपयोग - -- create table select statement तालिका चुनें बयान बना - -- create table as select access चयन का उपयोग टेबल बनाने के रूप में - -- create table insert into तालिका डालें बनाने में - -- create backup table oracle बैकअप तालिका बनाने के गूढ़ - -- db2 create table as select from db2 चुनें रूप से तालिका बनाना - -- how to create a new table throw a select command कैसे एक नई तालिका एक चुनें कमान फेंक बनाने के लिए - -- sqlite create table as select sqlite चयन के रूप में टेबल बनाना - -- db2 create as select db2 के रूप में बनाने का चयन करें - -- insert into select create table चयन में डालने के टेबल बनाना - -- create table from other table अन्य तालिका से तालिका बनाना - -- creating table from another table एक और तालिका से तालिका बनाने के - -- sqlite create table from select sqlite चुनें से सारणी बनाना - -- create table as select from table तालिका में से चयन के रूप में टेबल बनाना - -- how to create table from another table कैसे एक तालिका से तालिका बनाने के लिए - -- create table using another table एक और तालिका का उपयोग कर तालिका बनाना - -- create table insert into select तालिका में डालने के निर्माण का चयन करें - --