dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Put SQL statement in a asp variable?

  1. #1
    Join Date
    May 2006
    Posts
    21

    Put SQL statement in a asp variable?

    Hello, I am learning asp and need som help..
    can i put this codeline: conn.execute("SELECT * FROM sfjbue_Hovedside") in a variable. Got confused over all the quotes. Someone show me an example?

    Thanks in advance

    Ksamann

  2. #2
    Join Date
    Feb 2003
    Posts
    2,745
    Dim sql
    sql = "SELECT * FROM sfjbue_Hovedside"

    conn.execute(sql)

  3. #3
    Join Date
    Jul 2005
    Posts
    39
    If you need to use quotes inside of quotes try using single quotes such as
    sql = "select name from customers where name='bill' order by id"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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



Recent Articles