Results 1 to 5 of 5

Thread: Writing a SQL statement on serveral lines [* Resolved *]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Writing a SQL statement on serveral lines [* Resolved *]

    Hello

    I have a SQL statement which is long. How do l write it so that it is on serveral lines.

    This is what l have tried to do.

    Code:
    CnnStr = "SELECT student.studentID, student.FirstName, student.LastName" +
                    "book.bookID, book.Title" +
             "FROM student, book" +
             "WHERE student.studentID = book.studentID";
    This does not work, and anyone tell me how to do this.

    Many thanks in advance,

    Steve
    Last edited by steve_rm; Oct 15th, 2004 at 07:34 AM.
    steve

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