As you passed your column from which you do not want the first character, then let's consider any and all character types.
To select the data by removing the first character, and using SUBSTR
, we can do the following:
SELECT SUBSTR(info,2,LENGTH(info))
FROM INFORMACAO
Example: link
Substr function:
substr(string, from [, count])
The first parameter being the text, the second the beginning of the count of
characters of the text, and the third the total of characters.
In this way, we then have to pick up from the second character, up to the total size of the text, we get this through the function lenght
, which calculates the total characters in a text.
Now to update to the column, we use the same functions as above:
UPDATE informacao
SET info = SUBSTR(info,2, LENGTH(INFO));
There are other ways to do what you expect, but I did using the substr
of which was quoted in the question, for more learning.