Results 1 to 4 of 4

Thread: sequel problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    447

    sequel problem

    I noticed,, since the code is recycled, that there were "int" and "Cint" wrapping the "request":
    Code:
                chapter        = request("chapter")
                title     = request("title")
                subtitle       = request("subtitle")
    I might as well send the code as attachment. I think it's a numerical problem which I can't figure:
    Attached Files Attached Files
    Last edited by gilgalbiblewhee; May 13th, 2006 at 01:14 AM.
    Compare bible texts (and other tools):
    TheWheelofGod

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: sequel problem

    What is the question?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    447

    Re: sequel problem

    why do I get an empty field?
    Code:
    Select title, chapter FROM scarletandthebeast WHERE chapter = ''
    I might have to do with the field being treated as a number in the coding. It might be necessary to remove the function. I won't have the time to look at it right now. But am I right?
    Compare bible texts (and other tools):
    TheWheelofGod

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: sequel problem

    If chapter is not a text datatype - such as CHAR() or VARCHAR() - but is instead a numeric - such as INT then

    Select title, chapter FROM scarletandthebeast WHERE chapter = 0

    would be appropriate.

    btw - it might be pronounced SEQUEL, but it is written as SQL

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width