|
Question : ORACLE SQL DEVELOPER reports error
|
|
Can anyone help me find an error in this query please, I am trying to insert multiple rows at once but the blimming thing won't let me, saying the SQL command is not properly ended!! I am going mad here. Thanks for saving my sanity.
Please see the example in the code snippet.
Code Snippet:
1:
2:
3:
4:
5:
6:
|
INSERT INTO customer(
custid, firstname, lastname, houseno, street, city, postcode, telnum, email, county
) VALUES (
100012, 'Sergio', 'Fish', '34', 'Johny Walker Av', 'Kingston', 'K2 5OP', '02080987456', '[email protected]', 'surrey'
) , (
100013, 'Georg', 'Hanz', '12', 'Fishmongers Lane', 'Brighton', 'B2 0YU', '01940123456', '[email protected]', 'Kent');
|
|
|
Answer : ORACLE SQL DEVELOPER reports error
|
|
here it is ;)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
|
/* Formatted on 12/24/2009 12:47:18 PM (QP5 v5.115.810.9015) */
INSERT INTO customer (custid,
firstname,
lastname,
houseno,
street,
city,
postcode,
telnum,
email,
county)
SELECT 100012,
'Sergio',
'Fish',
'34',
'Johny Walker Av',
'Kingston',
'K2 5OP',
'02080987456',
'[email protected]',
'surrey'
FROM DUAL
UNION
SELECT 100013,
'Georg',
'Hanz',
'12',
'Fishmongers Lane',
'Brighton',
'B2 0YU',
'01940123456',
'[email protected]',
'Kent'
FROM DUAL
|
|
|
|
|