Valid_name
(character_expression)
如果character_expression是无效的标识符(非法字符或长度超过了30),则返回0;否则返回非0数值
Valid_user
(server_user_id)
如果指定的ID号在Adaptive Server的至少一个数据库中有其对应的用户名或别名,则返回1;只有sa_role或sso_role角色的用户才可以使用该函数。
例子:
1、找出表titles中title列的长度
slelect “标题长度”=col_length(“article”,”title”)
结果:
标题长度
-----
120
2、找出表article中title列中数据的长度
select length=datalength(title),title
from article
length title
24
上一页 [1] [2] [3] [4] [5] [6] [7] 下一页
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18