Professional Web Applications Themes

basic query question - MySQL

Not sure if i am asking this the right way but - Can anyone tell me what the symbol is for 'contains' instead of 'equals' ?. i.e SELECT * FROM datasearch WHERE email = '' I need to change this to SELECT * FROM datasearch WHERE email CONTAINS ''...

  1. #1

    Default basic query question

    Not sure if i am asking this the right way but -

    Can anyone tell me what the symbol is for 'contains' instead of 'equals' ?.

    i.e

    SELECT * FROM datasearch WHERE email = ''

    I need to change this to

    SELECT * FROM datasearch WHERE email CONTAINS ''





    Mike Guest

  2. #2

    Default Re: basic query question

    "Mike" <meprivacy.net> wrote in
    news:1261grak0kond78corp.supernews.com:
    > Not sure if i am asking this the right way but -
    >
    > Can anyone tell me what the symbol is for 'contains' instead of
    > 'equals' ?.
    >
    > i.e
    >
    > SELECT * FROM datasearch WHERE email = ''
    >
    > I need to change this to
    >
    > SELECT * FROM datasearch WHERE email CONTAINS ''
    SELECT * FROM datasearch WHERE email LIKE '%%'


    Good Man Guest

  3. #3

    Default Re: basic query question


    "Good Man" <heyholetsgo.com> wrote in message
    news:Xns97BE7FDDBB9C9sonicyouth216.196.97.131...
    > "Mike" <meprivacy.net> wrote in
    > news:1261grak0kond78corp.supernews.com:
    >
    >> Not sure if i am asking this the right way but -
    >>
    >> Can anyone tell me what the symbol is for 'contains' instead of
    >> 'equals' ?.
    >>
    >> i.e
    >>
    >> SELECT * FROM datasearch WHERE email = ''
    >>
    >> I need to change this to
    >>
    >> SELECT * FROM datasearch WHERE email CONTAINS ''
    >
    > SELECT * FROM datasearch WHERE email LIKE '%%'
    >

    thank you, i tried LIKE but was missing %


    question. can you think of a query to show me the email field that has
    content but not containing the symbol

    ie. SELECT * FROM datasearch WHERE email = something but excluding












    Mike Guest

  4. #4

    Default Re: basic query question

    "Mike" <meprivacy.net> wrote in
    news:1261ijbo0v2m1accorp.supernews.com:
    >>> SELECT * FROM datasearch WHERE email = ''
    >>>
    >>> I need to change this to
    >>>
    >>> SELECT * FROM datasearch WHERE email CONTAINS ''
    >>
    >> SELECT * FROM datasearch WHERE email LIKE '%%'
    >>
    >
    >
    > thank you, i tried LIKE but was missing %
    >
    >
    > question. can you think of a query to show me the email field that
    > has content but not containing the symbol
    >
    > ie. SELECT * FROM datasearch WHERE email = something but excluding
    my guess (not tested) would be:

    SELECT * FROM datasearch WHERE email NOT LIKE '%%'

    Good Man Guest

  5. #5

    Default Re: basic query question


    "Good Man" <heyholetsgo.com> wrote in message
    news:Xns97BE84974F998sonicyouth216.196.97.131...
    > "Mike" <meprivacy.net> wrote in
    > news:1261ijbo0v2m1accorp.supernews.com:
    >
    >>>> SELECT * FROM datasearch WHERE email = ''
    >>>>
    >>>> I need to change this to
    >>>>
    >>>> SELECT * FROM datasearch WHERE email CONTAINS ''
    >>>
    >>> SELECT * FROM datasearch WHERE email LIKE '%%'
    >>>
    >>
    >>
    >> thank you, i tried LIKE but was missing %
    >>
    >>
    >> question. can you think of a query to show me the email field that
    >> has content but not containing the symbol
    >>
    >> ie. SELECT * FROM datasearch WHERE email = something but excluding
    >
    > my guess (not tested) would be:
    >
    > SELECT * FROM datasearch WHERE email NOT LIKE '%%'
    >
    ok thx. that would show all the blank rows to though. i need to find a
    way to show the rows with something entered but exclude the or exclude
    both the empty and .
    its got me stumped


    Mike Guest

  6. #6

    Default Re: basic query question

    You need to add the bit about there being 'something' in the field -
    so;

    SELECT email1address FROM contacts WHERE email1address NOT LIKE '%%'
    AND email1address NOT LIKE '' ;

    strawberry Guest

  7. #7

    Default Re: basic query question


    "strawberry" <zac.carey> wrote in message
    news:1147195071.743560.88220e56g2000cwe.googlegro ups.com...
    > You need to add the bit about there being 'something' in the field -
    > so;
    >
    > SELECT email1address FROM contacts WHERE email1address NOT LIKE '%%'
    > AND email1address NOT LIKE '' ;
    >
    thats the one thank you


    Mike Guest

Similar Threads

  1. basic 3d question
    By Utah Saint in forum Macromedia Director 3D
    Replies: 1
    Last Post: April 9th, 04:06 PM
  2. Basic query speed question
    By cobramichelle in forum Coldfusion Database Access
    Replies: 1
    Last Post: December 23rd, 05:48 PM
  3. Replies: 2
    Last Post: November 18th, 12:14 PM
  4. very basic question
    By ET Director in forum Macromedia Director Basics
    Replies: 8
    Last Post: April 21st, 06:22 PM
  5. Help with this basic question??
    By mkdn in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 23rd, 05:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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