Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

ARI Data Table SQL Statment Like '%text%' How?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: ARI Data Table SQL Statment Like '%text%' How?
#26874
ARI Data Table SQL Statment Like '%text%' How? 12 Years, 8 Months ago Karma: 0
How can I do a like statment in the SQL code and have it work?

For example: select * from Users where FirstName like '%Adam%'
The administrator has disabled public write access.
 
#26875
Re:ARI Data Table SQL Statment Like '%text%' How? 12 Years, 8 Months ago Karma: 760
Hello,

Sorry, but what the problem with your SQL query? It looks fine.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#26876
Re:ARI Data Table SQL Statment Like '%text%' How? 12 Years, 8 Months ago Karma: 0
It's not working with the Request variables for example this doesn't work properly

select * from Users WHERE Position like '%{$REQUEST:Position}%'
The administrator has disabled public write access.
 
#26877
Re:ARI Data Table SQL Statment Like '%text%' How? 12 Years, 8 Months ago Karma: 760
Use the next SQL query:

Code:


SELECT
  * 
FROM 
  Users
WHERE 
  Position LIKE CONCAT('%', {$REQUEST:Position}, '%')



Regards,
ARI Soft
The administrator has disabled public write access.
 
#26878
Re:ARI Data Table SQL Statment Like '%text%' How? 12 Years, 8 Months ago Karma: 0
You rock! Thank you so much for all of your fast fixes!
The administrator has disabled public write access.
 
Go to topPage: 1