Statement Conversion Access -> mySQL

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Statement Conversion Access -> mySQL


    SQL = "DELETE FROM table WHERE ID IN (1, 9, 15, 20)"

    The above statement is for deleting records in access using checkboxes on a
    form (deletes records with ID 1, 9, 15, 20). How can I use the same
    principle for mySQL?

    --
    [email]ryanbNOSPAM006@hotNOSPAMmail.com[/email]
    (remove the NOSPAMs to reply by email)


    ryanb006 Guest

  2. Similar Questions and Discussions

    1. Java: MySQL DATETIME conversion errors?
      I do the following in my java application: Statement s = myConnection.createStatement(); ResultSet rs = s.executeQuery("SELECT startTime FROM...
    2. mysql charaters conversion
      Dears, Is there any simple way to convert characters from national characters to 'flat' ascii characters without using cast or convert...
    3. MySQL to PostGres conversion
      Hi, I'm porting some php code from mysql to postgres but I canąt find something equivalent to mysql_select_db(). I use this function to switch...
    4. Conversion problem from Access 97 to Access 2002
      I have an old access 97 database and I tried to convert to Access 2002. After the conversion, some of the forms and all modules are not converted...
    5. Help needed for TimeStamp conversion between MySQL and PHP
      On Sun, 06 Jul 2003 19:17:58 GMT, "Steven" <xueming@comcast.net> wrote: ...
  3. #2

    Default Re: Statement Conversion Access -> mySQL

    Are you saying that mySQL does not support "IN" in SQL statements?
    Have you checked the mySQL docs?

    If IN is not supported then you will have to change the where clause to use
    OR

    where id=1 or id=9 or...

    --
    Mark Schupp
    --
    Head of Development
    Integrity eLearning
    Online Learning Solutions Provider
    [email]mschupp@ielearning.com[/email]
    [url]http://www.ielearning.com[/url]
    714.637.9480 x17


    "ryanb006" <ryanbNOSPAM006@hotNOSPAMmail.com> wrote in message
    news:OkgjorWQDHA.2176@TK2MSFTNGP12.phx.gbl...
    >
    > SQL = "DELETE FROM table WHERE ID IN (1, 9, 15, 20)"
    >
    > The above statement is for deleting records in access using checkboxes on
    a
    > form (deletes records with ID 1, 9, 15, 20). How can I use the same
    > principle for mySQL?
    >
    > --
    > [email]ryanbNOSPAM006@hotNOSPAMmail.com[/email]
    > (remove the NOSPAMs to reply by email)
    >
    >

    Mark Schupp Guest

  4. #3

    Default Re: Statement Conversion Access -> mySQL

    I just tested it and it works. I thought maybe you had to do it a
    little different than in Access; like Access does not support "...LIMIT
    0, 30".


    Mark Schupp wrote:
    > Are you saying that mySQL does not support "IN" in SQL statements?
    > Have you checked the mySQL docs?
    >
    > If IN is not supported then you will have to change the where clause to use
    > OR
    >
    > where id=1 or id=9 or...
    >
    ryanb006 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139