USE test; DROP TABLE test_a, test_b; CREATE TABLE test_a ( test_id BIGINT(20) UNSIGNED NOT NULL PRIMARY KEY ); CREATE TABLE test_b ( test_id BIGINT(20) UNSIGNED NOT NULL ); INSERT INTO test_a VALUES (1); INSERT INTO test_b VALUES (1);