DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    jwadz Guest

    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")& "')"


  2. #2
    Kimoanh T. Vo Guest

    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")& "')"
    >



  3. #3
    jwadz Guest

    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")& "')"
    >>

    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links