BMS-HOSxP Community
HOSxP => การเขียน SQL Script => ข้อความที่เริ่มโดย: doramon ที่ กันยายน 06, 2008, 15:22:37 PM
-
สอน funtion MYSQL ---> LPAD()
-
ขอบคุณครับ ;D ;D ;D
-
ขอบคุณครับ
-
ขอบคุณครับ
แนะนำตัวเอง
-
สอน funtion MYSQL ---> LPAD()
แหม...พิมพ์เร็วไปหรือเปล่า LPAD ตอนแรกนึกว่า Lady PAD ซะอีก 5555
(PAD=People's Alliance for Democracy)
-
LPAD(str,len,padstr)
Returns the string str, left-padded with the string padstr to a length of len characters. If str is longer than len, the return value is shortened to len characters.
mysql> SELECT LPAD('hi',4,'??');
-> '??hi'
mysql> SELECT LPAD('hi',1,'??');
-> 'h'
-
ขอบคุณครับ