Jump to content

[SOLVED] sql select with exact character matching using wildcard


gazever

Recommended Posts

I am building a databse of crossword words.

 

I want to select where word = d?t?

 

I am trying to use select where word like 'd%t%'

 

however when running it I expect to get returned results of the word

 

DATA

 

but it seems to search where d & t are in that order returning for example

 

ADIT, DART

 

etc

 

do I have to get all these results then match character for character through an array or can I do this in my mysql query

 

Many Thanks

 

Gazever

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.