This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
dev:sql:functions:lpad [2010/07/08 17:57] els |
dev:sql:functions:lpad [2010/07/08 20:58] els |
||
---|---|---|---|
Line 25: | Line 25: | ||
//In this example, the name must first be trimmed and since it is already padded with spaces.// | //In this example, the name must first be trimmed and since it is already padded with spaces.// | ||
- | <code SQL> | + | <code> |
+ | > SELECT $lpad(trim(name), 40, '.') nme FROM individuals; | ||
NME | NME | ||
---------------------------------------- | ---------------------------------------- |