Geeks Talk

Prepare for your Next Interview




re table creation

This is a discussion on re table creation within the SQL forums, part of the Databases category; i want t to create a table in that 3 columns are there one is const_id (PK) and const_type foreignkey (const_id) and const name is it possible to me help ...


Go Back   Geeks Talk > Databases > SQL

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-18-2008
Junior Member
 
Join Date: Feb 2008
Location: hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sureshvempati is on a distinguished road
re table creation

i want t to create a table in that 3 columns are there one is const_id (PK) and const_type foreignkey (const_id) and const name is it possible to me help me urgently
plz send mail to me "mail id removed"
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-18-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: re table creation

What is the problem then ?
Reply With Quote
  #3 (permalink)  
Old 02-18-2008
Expert Member
 
Join Date: Sep 2007
Posts: 754
Thanks: 22
Thanked 64 Times in 63 Posts
krishnaindia2007 is on a distinguished road
Re: re table creation

Yes, you can create table in the following way

create table xxxx
( const_id varchar2(10) constraint xxxx_pk primary key,
const_type varchar2(10) constraint xxxx_fk references xxxx(const_id),
const_name varchar2(30) )

But what is the use of creating such a table?
Reply With Quote
Reply

  Geeks Talk > Databases > SQL


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
JTable creation in swing ssgvenkat2002 Java 1 01-30-2008 10:02 AM
DTS Package Creation Siva_Tech SQL 2 09-18-2007 02:32 AM
Html Page Creation suddu0308 JavaScript 6 06-27-2007 01:40 PM
Online Database creation Innila Database General 2 02-01-2007 03:45 AM
Online Database creation Innila Database General 1 01-12-2007 08:56 AM


All times are GMT -4. The time now is 05:52 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved