I want to use the LIKE clause and the IN clause together. for example: At the moment, my request is
SELECT * FROM [USER_DETAILS] WHERE [NAME] LIKE 'Dev%' OR [NAME] LIKE 'Deb%' OR ...... ......
How can I use the IN clause to achieve this? Can someone help? :)
Put the parameter values ββin the table, then use one condition JOIN, for example.
JOIN
SELECT * FROM [USER_DETAILS] AS U1 INNER JOIN Params AS P1 ON U1.[NAME] LIKE P1.param + '%';
Agree with NullUserException - there is no such syntax. "In" is the "syntactic sugar" for an equal predicate. There is no equivalent for other operations such as>, <, so you should use OR.
Source: https://habr.com/ru/post/1756855/More articles:Is there any way to change the MIDLet icon after loading it? - iconsAny way to override .blur () if .submit () is called in jQuery? - jqueryHow to get transparent image from OpenGL ES context on iPhone - iphoneIn Drupal 6, what is the fastest way to customize the WYSIWYG editor with code syntax highlighting and image loading? - drupalScala - the menu bar appears only when updating the contents of the window - scalaPreferred way to handle UTC / local time in Qt QDateTime? - datetimeSearch with single character words (MySQL) - sqlHow to add a new font in Xcode 3.2? - iphoneWhat type of eclipse is androidAdding UIFont and finding fontfamily file with EXC_BAD_ACCESS - iosAll Articles