Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Erik #1
SQL multiple NOT LIKEs?
How can I exclude multiple fields from a recordset with mySQL?
After some googling, I found this working solution:
SELECT *
FROM customers
WHERE customerID NOT LIKE '19'
ORDER BY customerName ASC
But what if I want to rule out customers no 19, 7 and 10?
I have tried:
WHERE customerID NOT LIKE '19,7 ,10'
and a dozen different approaches to that. No good.
Help greatly appreciated.
Erik
Erik Guest
-
Difficulties to send multiple object in multiple objectwith SOAP (WebService)
Hi, I have a problem similar to this one: http://bugs.adobe.com/jira/browse/SDK-12891 I manage to send complex object from flex to web services... -
OT - as Linux gets more likes windows, windows gets more like Linux
This assumed me, this is the command line for installing iis start /w pkgmgr /l:log.etw... -
Advanced OOP: Best OO design for rendering multiple page types to multiple devices
Hoping to get some ideas from more experienced hands regarding the best way to use object-oriented design to assist my development of a content... -
IE 6.0 don't likes my Cookies!!
The Script: <? if( isset($_POST) ) { setcookie("usr", $_POST, 0,'' ,'' , "0"); $_COOKIE = $_POST; // I just use this, because i need the... -
Who likes flashing with Canon ?
" Miro" <miro01@hotmail.com> writes: Surely this isn't the Miro who only a few short months ago was decrying all flash work as garbage? Surely... -
RobGT #2
Re: SQL multiple NOT LIKEs?
Use the IN keyword.
WHERE customerID NOT IN ('19,7 ,10')
HTH
Rob
[url]http://robgt.com/[/url]
RobGT Guest
-
Erik #3
Re: SQL multiple NOT LIKEs?
RobGT skrev:
Thanx a bunch for the speedy response!> Use the IN keyword.
>
> WHERE customerID NOT IN ('19,7 ,10')
Somehow I could not get this to work. It doesn't display any error
message, but it doesn't rule out all the actual customers either, only
the customer ID first in line.
Example:
WHERE customerID NOT IN ('5, 6, 7, 19, 20')
Only ID #5 disappears from the list, leaving the rest still standing.
What am I doing wrong?
Erik
Erik Guest
-
Erik #4
Re: SQL multiple NOT LIKEs? PROBLEM SOLVED!
OK, now it's working. I had to wrap every ID # in ''
The correct recordset:
SELECT *
FROM kunder
WHERE kundeID NOT IN ( '5', '6', '7', '19', '20 ' )
Thanx to RobGT for lightning fast troubleshooting :)
Erik
Erik Guest
-
RobGT #5
Re: SQL multiple NOT LIKEs? PROBLEM SOLVED!
Sorry about the incorrect syntax - glad you got it sorted!
Now, where's that coffee!
LOL
Rob
[url]http://robgt.com[/url]
RobGT Guest
-
Michael Fesser #6
Re: SQL multiple NOT LIKEs? PROBLEM SOLVED!
.oO(Erik)
Numeric values don't have to be quoted.>OK, now it's working. I had to wrap every ID # in ''
....>The correct recordset:
>
>SELECT *
>FROM kunder
>WHERE kundeID NOT IN ( '5', '6', '7', '19', '20 ' )
WHERE kundeID NOT IN (5, 6, 7, 19, 20)
Micha
Michael Fesser Guest
-
Erik #7
Re: SQL multiple NOT LIKEs? PROBLEM SOLVED!
Michael Fesser skrev:
Even better! Thx a lot! :)>
> Numeric values don't have to be quoted.
Erik
Erik Guest
-
dora babu M #8
Re: SQL multiple NOT LIKEs?
Try this Query it's give best result
select * from [Item Code] not like '1' and [Item Code] not like '2' and [item code] not like '3'
Dora Babu M
Exertion Tech. PVT,.LTD.
Chennai.dora babu M Guest



Reply With Quote

