vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| hello i would like to search a table column for a range of non-ascii characters, or a particular non-ascii character. how can i do this? the column can be any string like "hello, world" or "norwegian characters æøå here". refer to these pseudo examples: SELECT * FROM TABLE WHERE COLUMN CONTAINS CHARACTERS BETWEEN 128 and 255; SELECT * FROM TABLE WHERE COLUMN CONTAINS CHARACTER = 240; thanks |
| |||
| Hi, Olav Mørkrid wrote: > hello > > i would like to search a table column for a range of non-ascii > characters, or a particular non-ascii character. how can i do this? > > the column can be any string like "hello, world" or "norwegian > characters æøå here". > > refer to these pseudo examples: > > SELECT * FROM TABLE WHERE COLUMN CONTAINS CHARACTERS BETWEEN 128 and 255; > > SELECT * FROM TABLE WHERE COLUMN CONTAINS CHARACTER = 240; See the ASCII() and ORD() functions: http://dev.mysql.com/doc/refman/5.0/...functions.html Baron |
| ||||
| Olav Mørkrid schrieb: > hello > > i would like to search a table column for a range of non-ascii > characters, or a particular non-ascii character. how can i do this? Maybe via a inverted regular expression [1] like this?: SELECT * FROM <TABLE> WHERE <COLUMN> RLIKE '[^-, a-zA-Z0-9]' [1]: http://dev.mysql.com/doc/refman/5.1/en/regexp.html |
| Thread Tools | |
| Display Modes | |
|
|