Chinaunix首页 | 论坛 | 博客
  • 博客访问: 131918
  • 博文数量: 37
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 375
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-13 17:31
文章分类

全部博文(37)

文章存档

2011年(1)

2010年(9)

2009年(27)

我的朋友

分类: 数据库开发技术

2009-08-24 19:57:30

FORMAT
 $   Fixed or floating dollar sign.
 9   Decimal digit (no zero suppress).
 Z   Zero-suppressed decimal digit.
 ,   Comma.  Inserted where specified.
 .   Decimal point position.
 -   Dash character.  Inserted where specified.
 /   Slash character.  Inserted where specified.
 %   Percent character.  Inserted where specified.
 X   Character data. Each X represents one character.
 G   Graphic data.  Each G represents one logical (double byte) character.
 B   Blank data.  Insert a space at this point.
 
 
Examples
    FORMAT        '999999'                Data: 08777        Result: 008777
    FORMAT        'ZZZZZ9'                Data: 08777        Result: 8777
    FORMAT        '999-9999'              Data: 6495252      Result: 649-5252
    FORMAT        'X(3)'                  Data: 'Smith'      Result: Smi
    FORMAT        '$$9.99'                Data: 85.65        Result: $85.65
    FORMAT        '999.99'                Data: 85.65        Result: 085.65
    FORMAT        'X(3)'                  Data: 85.65        Result: Error
 
 
阅读(707) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-10-25 16:03:20

----

typot2009-09-04 20:04:12

....额,恩