Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ora-000936 on insert from sql expression

Status
Not open for further replies.

haste

Programmer
Feb 27, 2005
96
GH
hi,
I get this error ora-000936, missing expression, when I run this insert statement:
Code:
INSERT INTO MENU_USER
(  MENU_ID, GROUP_ID, PI, PU, PD, CR_DTE, CR_USER_ID, UPD_DTE, UPD_USER_ID)
VALUES
(
SELECT MENU_ID, 'CODE2', 'Y', 'Y', 'Y', SYSDATE, 'ALEX', NULL, NULL 
FROM MENUS B
WHERE B.MENU_ID = 'MAIN'
)

Any ideas why this is happening?
 
Code:
INSERT INTO MENU_USER
(  MENU_ID, GROUP_ID, PI, PU, PD, CR_DTE, CR_USER_ID, UPD_DTE, UPD_USER_ID)
SELECT MENU_ID, 'CODE2', 'Y', 'Y', 'Y', SYSDATE, 'ALEX', NULL, NULL 
FROM MENUS B
WHERE B.MENU_ID = 'MAIN'
/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top