mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
Clean up after merge
This commit is contained in:
parent
34fbba8815
commit
88c653f6e3
@ -2,33 +2,26 @@
|
|||||||
-- Sample file used to test import feature of multiline SQL script (HHH-2403).
|
-- Sample file used to test import feature of multiline SQL script (HHH-2403).
|
||||||
-- Contains various SQL instructions with comments.
|
-- Contains various SQL instructions with comments.
|
||||||
|
|
||||||
CREATE TABLE test_data (
|
INSERT INTO human (id, fname, lname) VALUES (
|
||||||
id NUMBER NOT NULL PRIMARY KEY -- primary key
|
1,
|
||||||
, text VARCHAR2(100) /* any other data */
|
'John',
|
||||||
|
'Wick'
|
||||||
);
|
);
|
||||||
|
|
||||||
INSERT INTO test_data VALUES (1, 'sample');
|
INSERT INTO human (id, fname, lname) VALUES (
|
||||||
|
2,
|
||||||
|
'Thomas',
|
||||||
|
'Anderson
|
||||||
|
-- follow the white rabbit
|
||||||
|
/* take the red pill */'
|
||||||
|
);
|
||||||
|
|
||||||
DELETE
|
INSERT INTO human (id, fname, lname) VALUES (
|
||||||
FROM test_data;
|
3,
|
||||||
|
/* a comment */ 'Theodore' /* and another */,
|
||||||
/*
|
'Logan' -- yet a third
|
||||||
* Data insertion...
|
|
||||||
*/
|
|
||||||
INSERT INTO test_data VALUES (2, 'Multi-line comment line 1
|
|
||||||
-- line 2''
|
|
||||||
/* line 3 */');
|
|
||||||
|
|
||||||
/* Invalid insert: INSERT INTO test_data VALUES (1, NULL); */
|
|
||||||
-- INSERT INTO test_data VALUES (1, NULL);
|
|
||||||
|
|
||||||
INSERT INTO test_data VALUES (3 /* 'third record' */, NULL /* value */); -- with NULL value
|
|
||||||
INSERT INTO test_data (id, text)
|
|
||||||
VALUES
|
|
||||||
(
|
|
||||||
4 -- another record
|
|
||||||
, NULL
|
|
||||||
);
|
);
|
||||||
|
|
||||||
-- comment;
|
-- comment;
|
||||||
-- comment;
|
-- comment;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user