mysql:13590
From: "F.Y" <"F.Y" <fumi_sby@xxxxxxxxxx>>
Date: Thu, 7 Dec 2006 10:21:10 +0900 (JST)
Subject: [mysql 13590] Re: 文字列の MAX
前ゼロ埋めちゃうってのもあったね。 mysql> select if('0100' >= '1', 'Yes', 'No') as douyo; +-------+ | douyo | +-------+ | No | +-------+ 1 row in set (0.02 sec) mysql> select lpad('0100', 10, '0') as kouyo; +------------+ | kouyo | +------------+ | 0000000100 | +------------+ 1 row in set (0.01 sec) mysql> select if(lpad('0100', 10, '0') >= lpad('1', 10, '0'), 'Yes', 'No') as de_douyo; +----------+ | de_douyo | +----------+ | Yes | +----------+ 1 row in set (0.00 sec) mysql> -------------------------------------- Yahoo! JAPAN - Red Ribbon Campaign 2006 http://pr.mail.yahoo.co.jp/redribbon/
13582 2006-12-07 03:37 ["m.fukuda" <fukuda@x] 文字列のMAX 13583 2006-12-07 08:38 ┣[YuGo <yu.gotou@xxxxx] 13584 2006-12-07 08:48 ┃┗["m.fukuda" <fukuda@x] 13585 2006-12-07 08:54 ┃ ┗[YuGo <yu.gotou@xxxxx] 13586 2006-12-07 09:06 ┃ ┗["m.fukuda" <fukuda@x] 13587 2006-12-07 09:42 ┃ ┣[YuGo <yu.gotou@xxxxx] 13588 2006-12-07 09:58 ┃ ┣["m.fukuda" <fukuda@x] 13589 2006-12-07 10:01 ┃ ┗["F.Y" <fumi_sby@xxxx] -> 13590 2006-12-07 10:21 ┃ ┗["F.Y" <fumi_sby@xxxx] 13595 2006-12-08 08:01 ┗[とみたまさひろ <tomm] 13597 2006-12-08 10:42 ┗["m.fukuda" <fukuda@x]