Data Archive
- Data Archive 6.4.3
- All Products
POSITION ( char value-expression1 IN char value-expression2 )
|
|
---|---|
|
|
CREATE TABLE string_table (col1 VARCHAR(20)); INSERT INTO string_table VALUES ('malfunction'); 1 row affected SELECT POSITION('fun' IN col1) FROM string_table; 1 row selected 1 ----------- 4
|
|
---|---|
|
|
CREATE TABLE string_table (col1 VARCHAR(20)); INSERT INTO string_table VALUES ('4234.23423'); 1 row affected SELECT POSITION('4' IN col1) FROM string_table; 1 row selected 1 ----------- 8