Thread: Foreign key
View Single Post

   
  #1 (permalink)  
Old 02-28-2008, 08:17 AM
Bruno Guerpillon
 
Posts: n/a
Default Foreign key

Hi

First, i assume i RTFM but am new to MySQL world so i got some problems.
I got 2 tables

TABLE1
T1Col1 Varchar(30) PRIMARY KEY

TABLE2
T2col1
T2col2



What i'd like to do is to set the T2col2 as foreign key for the T1Col1.
Any1 got the synthaxe to do it ?

Regards
Bruno


Reply With Quote