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. जब भी संभव है.
Related Articles संबंधित लेख
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL आसानी से डुप्लिकेट, प्रतिलिपि बनाएँ या तालिका के साथ ओरेकल, PostgreSQL, DB2 और SQLite में बैकअप टेबल्स एसक्यूएल
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle ड्रॉप तालिका में त्रुटि
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 तालिका देखें या मौजूद नहीं है Oracle त्रुटि क्या
- Create Business Graphics Via VizLytics Data Visualization Tool व्यापार ग्राफिक्स Via VizLytics डाटा विज़ुअलाइज़ेशन उपकरण बनाएँ
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 बनाएँ या नई विभाजन जोड़ें विफल त्रुटि
- Crack and Hack to Find, Reveal, Get, Recover and Retrieve All Windows Passwords with Ophcrack 2 and Rainbow Tables दरार और हैक को खोजें, पता चलता है, जाओ, स्वस्थ और सभी निकालें Windows पासवर्डस् 2 Ophcrack और रेनबो के साथ टेबल्स
- SLIC Table (SLIC.BIN or ACPISLIC.BIN) BIOS File for OEMs Download SLIC SLIC.BIN (तालिका या ACPISLIC.BIN) BIOS फाइल OEMs डाउनलोड के लिए
- PDFtoExcel Online Tool Extract PDF Tables to Excel Format PDFtoExcel ऑनलाइन उपकरण निकालें पीडीएफ एक्सेल प्रारूप को टेबल्स
- How to Show and Display IP Routing Table in Windows or Linux विंडोज या लिनक्स में दिखाएँ और प्रदर्शन IP अनुमार्गण तालिका में कैसे
- How to Delete and Remove a Route Rule from Windows Routing Table और कैसे नष्ट करने के लिए Windows अनुमार्गण तालिका से एक मार्ग नियम हटाएँ










































September 5th, 2009 14:30 5 सितम्बर 2009 14:30
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. इस आशा है कि आपकी समस्या का समाधान होगा.
January 28th, 2009 17:46 28 जनवरी 2009 17:46
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 एमएस में यह संभव क्वेरी या नहीं पहुँच
January 10th, 2008 13:31 10, 2008 13:31 जनवरी
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? किसी भी विचार है कि इस समस्या के कारण है?
April 1st, 2007 03:26 1 अप्रैल 2007 03:26
We can do it also with the query, हम इसे क्वेरी के साथ भी कर सकते हैं,
SELECT * INTO newtable FROM existingtable का चयन करें * जांच newtable से existingtable
I think its a little bit shorter. मैं अपना थोड़ा सा कम लगता है.