I need a query that removes the period "." of the column clientFName.
My query is:
SELECT clientFName, clientMName
FROM dto_client_dtl
WHERE clientFName LIKE '.%';
My table is the following:
I need a query that removes the period "." of the column clientFName.
My query is:
SELECT clientFName, clientMName
FROM dto_client_dtl
WHERE clientFName LIKE '.%';
My table is the following:
You need to UPDATE
the table removing the first character for those rows that clientFName
has period "." as the first character.
UPDATE dto_client_dtl
SET clientFName = SUBSTR(clientFName, 2)
WHERE clientFName LIKE '.%';
use mysql Replace
Replace(col,'.','')
Try this query:-
select * from table where Replace(col,'.','') like "%"
If you want only for display try trim:
SELECT TRIM( LEADING '.' FROM clientFName ) ,clientMName
FROM dto_client_dtl where clientFName like '.%'