易截截图软件、单文件、免安装、纯绿色、仅160KB

SQL判断字段类型

-->Title:Generating test data
-->Author:wufeng4552
-->Date :2009-09-25 09:56:07
if object_id('tb')is not null drop table tb
go
create table tb(ID int,name text)
insert tb select 1,'test'
go
--方法1
select sql_variant_property(ID,'BaseType') from tb
--方法2
select object_name(ID)表名,
       c.name 字段名,
       t.name 数据类型,
       c.prec 长度
from syscolumns c
inner join systypes t
on c.xusertype=t.xusertype
where objectproperty(id,'IsUserTable')=1 and id=object_id('tb')


相关文档:

sql 去空格与连接特殊字符

在分组排序过程中需要新建排序列,按条件:(物料分类+客户名称) 进行分组汇总 然后就根据该条件进行排序
1.需要拼凑两列 作为排序列,如需加入特殊字符.就会报错.
   因为本身改字段就是varchar类型 需要将char类型'_' 转换成varchar
2.拼凑过程中有空格需要去空格
 e.g:select (trim(物料分类)+to_char( ......

C#调用SQL存储过程以及返回值和参数的获取

QZone Editor
.dump{}

//TODO 域名
if (location.hash) {
document.domain=location.hash.substr(1);
}

//parent.qZEditor.callback();
function init(){
//获取编辑器面板ID
var pid = frameElement.panelID;

//获取编辑器面板对象 ......

小布作品:SQL*Plus使用培训 (全8讲)

==============================================
 
第1讲
在线观看: http://www.boobooke.com/v/bbk1389
视频下载: http://www.boobooke.com/v/bbk1389.zip
 
第2讲
在线观看: http://www.boobooke.com/v/bbk1390
视频下载: http://www.boobooke.com/v/bbk1390.zip
 
第3讲
在线观看: http ......

小布作品:Oracle 11g SQL基础入门系列培训(全30讲)

==============================================
 
第01讲: Chapter 00--Oracle 11g SQL Fundamentals Training Introduction
在线观看: http://www.boobooke.com/v/bbk2003
视频下载: http://www.boobooke.com/v/bbk2003.zip
 
第02讲: Chapter 00--Oracle 11g SQL Fundamentals Training Introduction ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号