วันพุธที่ 17 ตุลาคม พ.ศ. 2555

PostgreSQL- การแทนที่ข้อความ

replace(string text, from text, to text)
text
Replace all occurrences in string of substring from with substring to 
replace( 'abcdefabcdef', 'cd', 'XX')
abXXefabXXef

update house set address=replace( ident, '001/04/', '001-04-') ;