ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How to create a new table in SQL server 2000,2005 & 2008 from an existing table without copying the records from previous table?

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2015/01/26
Shahid Abdul Azeem
من قبل Shahid Abdul Azeem , Technical Lead IT Application/SAP HANA , Saudi Aramco Shell Refinery (SASREF)

You mean you just need to copy table with structure right:

if so create a table <newtable> as select * from oldtable and express the condition which does not meet.

ex.Create TABLE <NEWTAB>

AS (select * from OLDTAB where2<3)

Note:Use * for all Column 

Sarmad Jari
من قبل Sarmad Jari , Senior Cloud Solution Architect , Microsoft

simple as this:

Select * Into newTable From oldTable Where1 =2;

VISWANATH LEELA KRISHNA
من قبل VISWANATH LEELA KRISHNA , Database Administration , GULF BANK, KUWAIT

Select * Into<New Table> from <OldTable> where1=2;.

 

 

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟