Find Records Containing Percentage Sign

The “\%” and “\_” sequences are used to search for literal instances of “%” and “_” in pattern-matching contexts where they would otherwise be interpreted as wildcard characters. If you use “\%” or “\_” outside of pattern-matching contexts, they evaluate to the strings “\%” and “\_”, not to “%” and “_”. So if you want [...]

Posted at 7pm on 4/17/12 | no comments; | Filed Under: Queries | read on

MySQL Find Duplicate Records

If you are inserting the data into the table, you could either check for dupes before inserting, or make a unique key on the fields that comprise a unique record for your application, which will prevent duplicates from entering the table in the first place. This example is for cases where the data is already [...]

Posted at 9am on 9/1/11 | no comments; | Filed Under: Queries | read on

Categories

Monthly Archives