设为首页 加入收藏

TOP

SYBASE的字段类型
2014-11-23 22:54:22 来源: 作者: 【 】 浏览:6
Tags:SYBASE 类型

SYBASE的字段类型如下:

字段类型 描述 字段长度及其缺省值

Char(Size)

用于保存定长(Size)字节的字符串数据。

每行定长(不足部分补为空格);最大长度为255字节,缺省值为每行1字节。

Varchar(Size)

用于保存变长的字符串数据。其中最大字节长度由(Size)指定。

每行长度可变,最大长度为255字节。数据长度缺省为1

Nchar(Size)

多字节字符串。

 

每行定长(不足部分补为空格)。 长度(Size)是指字符的个数,最大字节数为Size*A@@Nchar Size。

Nvarchar(Size)

可变长,多字节字符串。

每行变长。长度(Size)是指字符的个数,最大字节数为Size*A@@Nchar Size。

Binary(Size)

固定长度的二进制字符串。

每行定长(不足部分补为空格);最大长度为255字节,缺省值为每行1字节。

Varbinary(Size)

可变长度的长度的二进制字符串。

每行长度可变,最大长度为255字节。数据长度缺省为1

Timestamp

用于改变管理的二进制值。

字节数为16

Datetime

保存定长的日期时间数据,范围为1753年1月1日到公元9999年12月21日,精度为3微秒间隔。

每行固定为8字节长度。

Smalldatetime

保存定长的日期时间数据,范围为1990年1月1日到公元2079年6月6日,精度为分钟间隔。

每行固定为4字节长度。

Int

保存整型数据,范围为-2147483647到+2147483647。

最大长度为4字节32 - 1字节或4G。

Smallint

保存整型数据,范围为-32767到+32767

<script type="text/java script">

<script type="text/java script">BAIDU_CLB_fillSlot("771048");
点击复制链接 与好友分享! 回本站首页
<script> function copyToClipBoard(){ var clipBoardContent=document.title + '\r\n' + document.location; clipBoardContent+='\r\n'; window.clipboardData.setData("Text",clipBoardContent); alert("恭喜您!复制成功"); }
分享到: 更多
<script type="text/java script" id="bdshare_js" data="type=tools&uid=12732"> <script type="text/java script" id="bdshell_js"> <script type="text/java script"> var bds_config = {'snsKey':{'tsina':'2386826374','tqq':'5e544a8fdea646c5a5f3967871346eb8'}}; document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js cdnversion=" + Math.ceil(new Date()/3600000)
您对本文章有什么意见或着疑问吗?请到 论坛讨论您的关注和建议是我们前行的参考和动力
上一篇: 第一页
下一篇: Sybase identity 字段
相关文章
<script type="text/java script">BAIDU_CLB_fillSlot("182716");
<script type="text/java script">BAIDU_CLB_fillSlot("517916");
图文推荐
<iframe src="http://www.2cto.com/uapi.php tid=92042&catid=278&title=U1lCQVNFtcTX1rbOwODQzQ==&forward=http://www.2cto.com/database/201105/92042.html" width="100%" height="100%" id="comment_iframe" name="comment_iframe" frameborder="0" scrolling="no">
<script type="text/java script">BAIDU_CLB_fillSlot("771057");
排行
热门
<script type="text/java script">BAIDU_CLB_fillSlot("406189");
<script type="text/java script">BAIDU_CLB_fillSlot("703749");
<iframe frameborder="0" name="Iframe1" src="http://www.2cto.com/bbsdy/index.html" width="100%" height="200"> 您的浏览器不支持嵌入式框架,或者当前配置为不显示嵌入式框架。
<script type="text/java script">BAIDU_CLB_fillSlot("182692");
文章
下载
读书
<script type="text/java script">BAIDU_CLB_fillSlot("771043");
<script type="text/java script"> <script language="java script" src="http://www.2cto.com/api.php op=count&id=92042&modelid=1"> <script type="text/java script">BAIDU_CLB_fillSlot("137946");
<script type="text/java script">BAIDU_CLB_fillSlot("333829");

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训
版权所有: 红黑联盟--致力于做最好的IT技术学习网站<script type="text/java script"> var _bdhmProtocol = (("https:" == document.location.protocol) " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F1898984a3d796e86ad73ad1f4bc9f240' type='text/java script'%3E%3C/script%3E"));

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MySQL大表中重复字段的查询效率方.. 下一篇Sybase的客户端工具

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: