JAVA/Android
[SQLite] concat, append String text
네코냥이
2014. 11. 3. 18:19
How to concatenate strings with padding in sqlite - Stack Overflow.pdf
-- the statement below is almost the same as
-- select lpad(mycolumn,'0',10) from mytable
select substr('0000000000' || mycolumn, -10, 10) from mytable
-- the statement below is almost the same as
-- select rpad(mycolumn,'0',10) from mytable
select substr(mycolumn || '0000000000', 1, 10) from mytable
+ 대신 || 를 사용해라.