How to use ASP and MySql to addnew a new data?

Discussion in 'C#' started by JJnacy, Jul 28, 2009.

  1. #1
    I know ASP and MsSql to use addnew.

    My question:
    How to use addnew on Mysql +ASP classic?


    Thanks
     
    JJnacy, Jul 28, 2009 IP
  2. dwirch

    dwirch Well-Known Member

    Messages:
    239
    Likes Received:
    12
    Best Answers:
    1
    Trophy Points:
    135
    #2
    You'd set up your SQL string the same way, then execute the string:

    strSQL="INSERT INTO MyTableName (Field1,Field2,Field3) VALUES ('String1',55,'String2')"
    objConn.Open
    objConn.Execute strSQL
    objConn.Close
     
    dwirch, Aug 1, 2009 IP
    JJnacy likes this.
  3. JJnacy

    JJnacy Peon

    Messages:
    448
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks to all.

    I finally found out mysql and mssql can use all same SQL scripts.

    Now I can use mySQL DB as extra DBs

    :)
     
    Last edited: Aug 1, 2009
    JJnacy, Aug 1, 2009 IP