Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

create table from structure of another table in DB2.

This is a discussion on create table from structure of another table in DB2. within the DB2 forums, part of the Databases category; how to create a table by having the same schema of another table. i tried this create table target name1 as(select * from name2 where 1=2) but am getting the ...

Go Back   Geeks Talk > Databases > DB2
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 09-09-2009
Junior Member
 
Join Date: Sep 2009
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Eswaran Muthu is on a distinguished road
create table from structure of another table in DB2.

how to create a table by having the same schema of another table.
i tried this

create table target name1 as(select * from name2 where 1=2)

but am getting the following error

sqlcode: -104

sqlstate: 42601

please help its urgent, thanks in advance.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-09-2009
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: create table from structure of another table in DB2.

IIRC, this problem was fixed in FP3 .. What fixpak are you on ??

to know the fix pack ----------db2level (from the command line).

the following link might be helpful for you.
Reply With Quote
Reply

  Geeks Talk > Databases > DB2

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Query to find structure of a table Geek_Guest SQL 16 07-07-2009 04:35 AM
Query to get table structure Divya.B.V DB2 4 05-26-2008 04:15 PM
Table structure copying krishnaindia2007 Oracle 1 11-28-2007 03:13 AM
How to view the structure of the table Subashini.Ramasamy SQL Server 14 11-26-2007 07:58 AM
copy the Table Structure vcyogi SQL Server 3 08-04-2007 02:43 AM


All times are GMT -4. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved