Skip to content

FOREIGN KEY syntax #172

@Cr0s

Description

@Cr0s

Can you provide a BNF grammar for FOREIGN KEY syntax? I getting parser exception on this query:

CREATE TABLE IF NOT EXISTS table1 (
   id INTEGER PRIMARY KEY AUTO_INCREMENT,
   aid INTEGER REFERENCES accounts ON aid ON DELETE CASCADE,
   name STRING,
   lastname STRING)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions