What is the difference of foreign key?

Started by 纪晓曦over 16 years ago2 messagesgeneral
Jump to latest
#1纪晓曦
sheepjxx@gmail.com

To be precise,

The difference between

create table a (
foreign key (id) referenced by b(name),
);

create table b(
id integer referenced by b(name),
);

#2Lew
noone@lwsc.ehost-services.com
In reply to: 纪晓曦 (#1)
Re: What is the difference of foreign key?

sheepjxx wrote:

To be precise,

The difference between

create table a (
foreign key (id) referenced by b(name),
);

create table b(
id integer referenced by b(name),
);

They're just two different forms of invalid SQL. The difference between them
makes no difference.

--
Lew