LTRIM in JS
Description
Sample Source Pattern
Implementation Example
function LTRIM(string){
return string.replace(/^s+/,"");
}Arguments
Return Type
Examples
CREATE OR REPLACE FUNCTION ltrim(str varchar)
RETURNS string
LANGUAGE JAVASCRIPT
AS
$$
function LTRIM(string){
return string.replace(/^s+/,"");
}
return LTRIM(S TR );
$$;
SELECT LTRIM(' FIRST TWO BLANK SPACES') AS LTRIM; LTRIM|
----------------------+
FIRST TWO BLANK SPACES| Last updated
Was this helpful?