File: one_fk.sql

package info (click to toggle)
percona-toolkit 3.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 106,712 kB
  • sloc: perl: 257,236; sql: 23,577; sh: 21,388; javascript: 6,322; makefile: 397; python: 62; awk: 38; sed: 1
file content (6 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
CREATE TABLE `t1` (
  `a` int(11) NOT NULL,
  `b` char(50) default NULL,
  KEY `a` (`a`),
  CONSTRAINT `t1_ibfk_1` FOREIGN KEY (`a`) REFERENCES `t2` (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1