-
Can anyone tell me where I am missing a comma (Oracle)
'When I run the SQL statement below in an ASP page using VB script I have
the following error returned 'Missing Comma'. I am running Oracle as my DB.
Any suggestions?
Thanks in advance
SQLInsrtBk = "INSERT INTO tbtext"&_
"(tbtext_id, tbtext_publisher_txt, tbtext_author_txt, tbtext_title_txt, "&_
"tbtext_edition_num, tbtext_isbn_txt, tbtext_price_amt, tbtext_create_tms,
tbtext_create_nm)"&_
"VALUES(tbtext_id.nextval, '"& Publisher &"', '"& Author &"', '"& Title &"',
"&_
"& Edition &, '"& ISBN &"', & Price &, TO_DATE('"& InsrtDate &"', 'MM-DD-YYYY'),
'"& session("logonuser")& "')"
-
Re: Can anyone tell me where I am missing a comma (Oracle)
Hi,
Please test this one out to see if it works ...
SQLInsrtBk = "INSERT INTO tbtext (" &_
"tbtext_id, tbtext_publisher_txt, tbtext_author_txt, tbtext_title_txt,
" &_
"tbtext_edition_num, tbtext_isbn_txt, tbtext_price_amt, tbtext_create_tms,
tbtext_create_nm ) " &_
"VALUES ( tbtext_id.nextval, '" & Publisher & "', '" & Author & "', '"
& Title & "', " & Edition & ", '" &_
ISBN & "', " & Price & ", TO_DATE( '" & InsrtDate & "', 'MM-DD-YYYY'
), '" & session( "logonuser" ) & "' )"
Hope it helps.
kv-
"jwadz" <jwadz626@uwsp.edu> wrote:
>
>'When I run the SQL statement below in an ASP page using VB script I have
>the following error returned 'Missing Comma'. I am running Oracle as my
DB.
>Any suggestions?
>
>Thanks in advance
>
>SQLInsrtBk = "INSERT INTO tbtext"&_
>"(tbtext_id, tbtext_publisher_txt, tbtext_author_txt, tbtext_title_txt,
"&_
>"tbtext_edition_num, tbtext_isbn_txt, tbtext_price_amt, tbtext_create_tms,
>tbtext_create_nm)"&_
>"VALUES(tbtext_id.nextval, '"& Publisher &"', '"& Author &"', '"& Title
&"',
>"&_
>"& Edition &, '"& ISBN &"', & Price &, TO_DATE('"& InsrtDate &"', 'MM-DD-YYYY'),
>'"& session("logonuser")& "')"
>
-
Re: Can anyone tell me where I am missing a comma (Oracle)
Excellent. Now I get a date error but I can fix that one. Thank you very much.
PS Stupid Quotes
"Kimoanh T. Vo" <kvo@dreamworks.com> wrote:
>
>Hi,
>
>Please test this one out to see if it works ...
>
>SQLInsrtBk = "INSERT INTO tbtext (" &_
> "tbtext_id, tbtext_publisher_txt, tbtext_author_txt, tbtext_title_txt,
>" &_
> "tbtext_edition_num, tbtext_isbn_txt, tbtext_price_amt, tbtext_create_tms,
>tbtext_create_nm ) " &_
> "VALUES ( tbtext_id.nextval, '" & Publisher & "', '" & Author & "',
'"
>& Title & "', " & Edition & ", '" &_
> ISBN & "', " & Price & ", TO_DATE( '" & InsrtDate & "', 'MM-DD-YYYY'
>), '" & session( "logonuser" ) & "' )"
>
>Hope it helps.
>kv-
>
>
>
>"jwadz" <jwadz626@uwsp.edu> wrote:
>>
>>'When I run the SQL statement below in an ASP page using VB script I have
>>the following error returned 'Missing Comma'. I am running Oracle as my
>DB.
>>Any suggestions?
>>
>>Thanks in advance
>>
>>SQLInsrtBk = "INSERT INTO tbtext"&_
>>"(tbtext_id, tbtext_publisher_txt, tbtext_author_txt, tbtext_title_txt,
>"&_
>>"tbtext_edition_num, tbtext_isbn_txt, tbtext_price_amt, tbtext_create_tms,
>>tbtext_create_nm)"&_
>>"VALUES(tbtext_id.nextval, '"& Publisher &"', '"& Author &"', '"& Title
>&"',
>>"&_
>>"& Edition &, '"& ISBN &"', & Price &, TO_DATE('"& InsrtDate &"', 'MM-DD-YYYY'),
>>'"& session("logonuser")& "')"
>>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks