Jump to content

How do I use the % sign?


chantown

Recommended Posts

With "IN"

 

SELECT * FROM users WHERE username IN ('%gal','%saa');

 

^^ that doesn't work.

 

But this works:

 

SELECT * FROM users WHERE username LIKE '%gal' OR username LIKE '%saa';

 

Is there any way I can make it work the first way? Because it saves space + convenicency  a lot.

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/90779-how-do-i-use-the-sign/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.