During the days you live in the world
it seems you want everything ,but did not care about wat you already got.The god won't give anything else.But if you don't want anything , god will give you anything you did not pray for.It is like a magic , but it is true , when you believe this , the god will send you the bless.Since you won't lost yourself.Everything is there, it just there ,and waiting for your attention.So just believe there's kindness and you will be the lucky guy to own many many things.
There are lots of thing in the world in the world you don't know ever. So , keep on opening your eyes. Life is hard and tough sometimes , so don't be the enemy of yourself. It will make you crazy and high metal burden >As kuya said "go out and stop doing it"
Showing posts with label internet. Show all posts
Showing posts with label internet. Show all posts
Monday, May 21, 2007
Thursday, May 17, 2007
Got the info You want
I think i can get some info easily.
YOu don't have to be a hacker ,though you know how to hack. Yon still have lots of news and secret you don't know .But use your eyes and watching wat the ones they are doing and ready , you can find lots of track that their behavior. And you can get wat you nid from their action or face.
YOu don't have to be a hacker ,though you know how to hack. Yon still have lots of news and secret you don't know .But use your eyes and watching wat the ones they are doing and ready , you can find lots of track that their behavior. And you can get wat you nid from their action or face.
Tuesday, April 10, 2007
sql数据类型
1.数据类型
数据类类是数据的一种属性,表示数据所表示信息的类型。任何一种计算机语言都定义了自己的数据类型。当然,不同的程序语言都具有不同的特点,所定义的数据类型的各类和名称都或多或少有些不同。SQL Server 提供了 25 种数据类型:
·Binary [(N)]
·Varbinary [(N)]
·Char [(N)]
·Varchar[(N)]
·Nchar[(N)]
·Nvarchar[(N)]
·Datetime
·Smalldatetime
·Decimal[(p[,s])]
·Numeric[(p[,s])]
·Float[(N)]
·Real
·Int
·Smallint
·Tinyint
·Money
·Smallmoney
·Bit
·Cursor
·Sysname
·Timestamp
·Uniqueidentifier
·Text
·Image
·Ntext
(1)二进制数据类型
二进制数据包括 Binary、Varbinary 和 Image.
Binary 数据类型既可以是固定长度的(Binary),也可以是变长度的。
Binary[(N)] 是 n 位固定的二进制数据。其中,n 的取值范围是从 1 到 8000。其存储窨的大小是 n + 4 个字节。
Varbinary[(N)] 是 n 位变长度的二进制数据。其中,n 的取值范围是从 1 到 8000。其存储窨的大小是 n + 4个字节,不是 n 个字节。
在 Image 数据类型中存储的数据是以位字符串存储的,不是由 SQL Server 解释的,必须由应用程序来解释。例如,应用程序可以使用 BMP、TIEF、GIF 和 JPEG 格式把数据存储在 Image 数据类型中。
(2)字符数据类型
字符数据的类型包括 Char,Varchar 和 Text。
字符数据是由任何字母、符号和数字任意组合而成的数据。
Varchar 是变长字符数据,其长度不超过 8KB。Char 是定长字符数据,其长度最多为 8KB。超过 8KB 的ASCII 数据可以使用Text 数据类型存储。例如,因为 Html 文档全部都是 ASCII 字符,并且在一般情况下长度超过 8KB,所以这些文档可以 Text 数据类型存储在 SQL Server 中。
(3)Unicode 数据类型
Unicode 数据类型包括 Nchar,Nvarchar 和Ntext。
在 Microsoft SQL Server 中,传统的非 Unicode 数据类型允许使用由特定字符集定义的字符。在 SQL Server 安装过程中,允许选择一种字符集。使用 Unicode 数据类型,列中可以存储任何由Unicode 标准定义的字符。在 Unicode 标准中,包括了以各种字符集定义的全部字符。使用Unicode 数据类型,所战胜的窨是使用非 Unicode 数据类型所占用的窨大小的两倍。
在 SQL Server 中,Unicode 数据以 Nchar、Nvarchar 和 Ntext 数据类型存储。使用这种字符类型存储的列可以存储多个字符集中的字符。当列的长度变化时,应该使用 Nvarchar 字符类型,这时最多可以存储 4000 个字符。当列的长度固定不变时,应该使用 Nchar 字符类型,同样,这时最多可以存储 4000 个字符。当使用 Ntext 数据类型时,该列可以存储多于 4000 个字符。
(4)日期和时间数据类型
日期和时间数据类型包括 Datetime 和 Smalldatetime 两种类型。
日期和时间数据类型由有效的日期和时间组成。例如,有效的日期和时间数据包括“4/01/98 12:15:00:00:00 PM”和“1:28:29:15:01 AM 8/17/98”。前一个数据类型是日期在前,时间在后一个数据类型是霎时间在前,日期在后。在 Microsoft SQL Server 中,日期和时间数据类型包括Datetime 和 Smalldatetime 两种类型时,所存储的日期范围是从 1753 年 1 月 1 日开始,到 9999 年12 月 31 日结束(每一个值要求 8 个存储字节)。使用 Smalldatetime 数据类型时,所存储的日期范围是 1900 年 1 月 1日 开始,到 2079 年 12 月 31 日结束(每一个值要求 4 个存储字节)。
日期的格式可以设定。设置日期格式的命令如下:
Set DateFormat {format | @format _var|
其中,format | @format_var 是日期的顺序。有效的参数包括 MDY、DMY、YMD、YDM、MYD 和 DYM。在默认情况下,日期格式为 MDY。
例如,当执行 Set DateFormat YMD 之后,日期的格式为年 月 日 形式;当执行 Set DateFormat DMY 之后,日期的格式为 日 月有年 形式
(5)数字数据类型
数字数据只包含数字。数字数据类型包括正数和负数、小数(浮点数)和整数 。
整数由正整数和负整数组成,例如 39、25、0-2 和 33967。在 Micrsoft SQL Server 中,整数存储的数据类型是 Int,Smallint 和 Tinyint。Int 数据类型存储数据的范围大于 Smallint 数据类型存储数据的范围,而 Smallint 据类型存储数据的范围大于 Tinyint 数据类型存储数据的范围。使用 Int 数据狗昔存储数据的范围是从 -2 147 483 648 到 2 147 483 647(每一个值要求 4个字节存储空间)。使用 Smallint 数据类型时,存储数据的范围从 -32 768 到 32 767(每一个值要求2个字节存储空间)。使用 Tinyint 数据类型时,存储数据的范围是从0 到255(每一个值要求1个字节存储空间)。
精确小娄数据在 SQL Server 中的数据类型是 Decimal 和 Numeric。这种数据所占的存储空间根据该数据的位数后的位数来确定。
在SQL Server 中,近似小数数据的数据类型是 Float 和 Real。例如,三分之一这个分数记作。3333333,当使用近似数据类型时能准确表示。因此,从系统中检索到的数据可能与存储在该列中数据不完全一样。
(6)货币数据表示正的或者负的货币数量 。在 Microsoft SQL Server 中,货币数据的数据类型是Money 和 Smallmoney。Money 数据类型要求 8 个存储字节,Smallmoney 数据类型要求 4 个存储字节。
(7)特殊数据类型
特殊数据类型包括前面没有提过的数据类型。特殊的数据类型有3种,即 Timestamp、Bit 和 Uniqueidentifier。
Timestamp 用于表示SQL Server 活动的先后顺序,以二进投影的格式表示。Timestamp 数据与插入数据或者日期和时间没有关系。
Bit 由 1 或者 0 组成。当表示真或者假、ON 或者 OFF 时,使用 Bit 数据类型。例如,询问是否是每一次访问的客户机请求可以存储在这种数据类型的列中。
Uniqueidentifier 由 16 字节的十六进制数字组成,表示一个全局唯一的。当表的记录行要求唯一时,GUID是非常有用。例如,在客户标识号列使用这种数据类型可以区别不同的客户。
数据类类是数据的一种属性,表示数据所表示信息的类型。任何一种计算机语言都定义了自己的数据类型。当然,不同的程序语言都具有不同的特点,所定义的数据类型的各类和名称都或多或少有些不同。SQL Server 提供了 25 种数据类型:
·Binary [(N)]
·Varbinary [(N)]
·Char [(N)]
·Varchar[(N)]
·Nchar[(N)]
·Nvarchar[(N)]
·Datetime
·Smalldatetime
·Decimal[(p[,s])]
·Numeric[(p[,s])]
·Float[(N)]
·Real
·Int
·Smallint
·Tinyint
·Money
·Smallmoney
·Bit
·Cursor
·Sysname
·Timestamp
·Uniqueidentifier
·Text
·Image
·Ntext
(1)二进制数据类型
二进制数据包括 Binary、Varbinary 和 Image.
Binary 数据类型既可以是固定长度的(Binary),也可以是变长度的。
Binary[(N)] 是 n 位固定的二进制数据。其中,n 的取值范围是从 1 到 8000。其存储窨的大小是 n + 4 个字节。
Varbinary[(N)] 是 n 位变长度的二进制数据。其中,n 的取值范围是从 1 到 8000。其存储窨的大小是 n + 4个字节,不是 n 个字节。
在 Image 数据类型中存储的数据是以位字符串存储的,不是由 SQL Server 解释的,必须由应用程序来解释。例如,应用程序可以使用 BMP、TIEF、GIF 和 JPEG 格式把数据存储在 Image 数据类型中。
(2)字符数据类型
字符数据的类型包括 Char,Varchar 和 Text。
字符数据是由任何字母、符号和数字任意组合而成的数据。
Varchar 是变长字符数据,其长度不超过 8KB。Char 是定长字符数据,其长度最多为 8KB。超过 8KB 的ASCII 数据可以使用Text 数据类型存储。例如,因为 Html 文档全部都是 ASCII 字符,并且在一般情况下长度超过 8KB,所以这些文档可以 Text 数据类型存储在 SQL Server 中。
(3)Unicode 数据类型
Unicode 数据类型包括 Nchar,Nvarchar 和Ntext。
在 Microsoft SQL Server 中,传统的非 Unicode 数据类型允许使用由特定字符集定义的字符。在 SQL Server 安装过程中,允许选择一种字符集。使用 Unicode 数据类型,列中可以存储任何由Unicode 标准定义的字符。在 Unicode 标准中,包括了以各种字符集定义的全部字符。使用Unicode 数据类型,所战胜的窨是使用非 Unicode 数据类型所占用的窨大小的两倍。
在 SQL Server 中,Unicode 数据以 Nchar、Nvarchar 和 Ntext 数据类型存储。使用这种字符类型存储的列可以存储多个字符集中的字符。当列的长度变化时,应该使用 Nvarchar 字符类型,这时最多可以存储 4000 个字符。当列的长度固定不变时,应该使用 Nchar 字符类型,同样,这时最多可以存储 4000 个字符。当使用 Ntext 数据类型时,该列可以存储多于 4000 个字符。
(4)日期和时间数据类型
日期和时间数据类型包括 Datetime 和 Smalldatetime 两种类型。
日期和时间数据类型由有效的日期和时间组成。例如,有效的日期和时间数据包括“4/01/98 12:15:00:00:00 PM”和“1:28:29:15:01 AM 8/17/98”。前一个数据类型是日期在前,时间在后一个数据类型是霎时间在前,日期在后。在 Microsoft SQL Server 中,日期和时间数据类型包括Datetime 和 Smalldatetime 两种类型时,所存储的日期范围是从 1753 年 1 月 1 日开始,到 9999 年12 月 31 日结束(每一个值要求 8 个存储字节)。使用 Smalldatetime 数据类型时,所存储的日期范围是 1900 年 1 月 1日 开始,到 2079 年 12 月 31 日结束(每一个值要求 4 个存储字节)。
日期的格式可以设定。设置日期格式的命令如下:
Set DateFormat {format | @format _var|
其中,format | @format_var 是日期的顺序。有效的参数包括 MDY、DMY、YMD、YDM、MYD 和 DYM。在默认情况下,日期格式为 MDY。
例如,当执行 Set DateFormat YMD 之后,日期的格式为年 月 日 形式;当执行 Set DateFormat DMY 之后,日期的格式为 日 月有年 形式
(5)数字数据类型
数字数据只包含数字。数字数据类型包括正数和负数、小数(浮点数)和整数 。
整数由正整数和负整数组成,例如 39、25、0-2 和 33967。在 Micrsoft SQL Server 中,整数存储的数据类型是 Int,Smallint 和 Tinyint。Int 数据类型存储数据的范围大于 Smallint 数据类型存储数据的范围,而 Smallint 据类型存储数据的范围大于 Tinyint 数据类型存储数据的范围。使用 Int 数据狗昔存储数据的范围是从 -2 147 483 648 到 2 147 483 647(每一个值要求 4个字节存储空间)。使用 Smallint 数据类型时,存储数据的范围从 -32 768 到 32 767(每一个值要求2个字节存储空间)。使用 Tinyint 数据类型时,存储数据的范围是从0 到255(每一个值要求1个字节存储空间)。
精确小娄数据在 SQL Server 中的数据类型是 Decimal 和 Numeric。这种数据所占的存储空间根据该数据的位数后的位数来确定。
在SQL Server 中,近似小数数据的数据类型是 Float 和 Real。例如,三分之一这个分数记作。3333333,当使用近似数据类型时能准确表示。因此,从系统中检索到的数据可能与存储在该列中数据不完全一样。
(6)货币数据表示正的或者负的货币数量 。在 Microsoft SQL Server 中,货币数据的数据类型是Money 和 Smallmoney。Money 数据类型要求 8 个存储字节,Smallmoney 数据类型要求 4 个存储字节。
(7)特殊数据类型
特殊数据类型包括前面没有提过的数据类型。特殊的数据类型有3种,即 Timestamp、Bit 和 Uniqueidentifier。
Timestamp 用于表示SQL Server 活动的先后顺序,以二进投影的格式表示。Timestamp 数据与插入数据或者日期和时间没有关系。
Bit 由 1 或者 0 组成。当表示真或者假、ON 或者 OFF 时,使用 Bit 数据类型。例如,询问是否是每一次访问的客户机请求可以存储在这种数据类型的列中。
Uniqueidentifier 由 16 字节的十六进制数字组成,表示一个全局唯一的。当表的记录行要求唯一时,GUID是非常有用。例如,在客户标识号列使用这种数据类型可以区别不同的客户。
sql date & time
日期函数用来操作DATETIME 和SMALLDATETIME 类型的数据,执行算术运算。与其它函数一样,可以在Select 语句的Select 和Where 子句以及表达式中使用日期函数。其使用方法如下:
日期函数参数,其中参数个数应不同的函数而不同。
·DAY()
DAY() 函数语法如下:
DAY ()
DAY() 函数返回date_expression 中的日期值。
·MONTH()
MONTH() 函数语法如下:
MONTH ()
MONTH() 函数返回date_expression 中的月份值。
与DAY() 函数不同的是,MONTH() 函数的参数为整数时,一律返回整数值1,即SQL Server 认为其是1900 年1 月。
·YEAR()
YEAR() 函数语法如下:
YEAR ()
YEAR() 函数返回date_expression 中的年份值。
提醒:在使用日期函数时,其日期值应在1753年到9999年之间,这是SQL Server系统所能识别的日期范围,否则会出现错误。
·DATEADD()
DATEADD() 函数语法如下:
DATEADD (, , )
DATEADD() 函数返回指定日期date 加上指定的额外日期间隔number 产生的新日期。参数“datepart” 在日期函数中经常被使用,它用来指定构成日期类型数据的各组件,如年、季、月、日、星期等。其取值如表4-9 所示:
·DATEDIFF()
DATEDIFF() 函数语法如下:
DATEDIFF() (, , )
DATEDIFF() 函数返回两个指定日期在datepart 方面的不同之处,即date2 超过date1的差距值,其结果值是一个带有正负号的整数值。针对不同的datepart, DATEDIFF()函数所允许的最大差距值不一样,如:datepart 为second 时,DATEDIFF() 函数所允许的最大差距值为68: 年datepart 为millisecond 时,DATEDIFF() 函数所允许的最大差距值为24 天20 小时30 分23 秒647 毫秒。
·DATENAME()
DATENAME() 函数语法如下:
DATENAME (,
DATENAME() 函数以字符串的形式返回日期的指定部分此部分。由datepart 来指定。
·DATEPART()
DATEPART() 函数语法如下:
DATEPART (, )
DATEPART() 函数以整数值的形式返回日期的指定部分。此部分由datepart 来指定。
DATEPART (dd, date) 等同于DAY (date)
DATEPART (mm, date) 等同于MONTH (date)
DATEPART (yy, date) 等同于YEAR (date)
·GETDATE()
GETDATE() 函数语法如下:
GETDATE()
GETDATE() 函数以DATETIME 的缺省格式返回系统当前的日期和时间,它常作为其它函数或命令的参数使用。
/*cast()类型转换函数*//*datepart()取部分日期函数*//*getdate()取当前服务器日期*/example:select cast(datepart(year,getdate()) as varchar)+‘年‘ as year,cast(datepart(month,getdate()) as varchar)+‘月‘ as month,cast(datepart(day,getdate()) as varchar)+‘日‘ as day.
日期函数参数,其中参数个数应不同的函数而不同。
·DAY()
DAY() 函数语法如下:
DAY (
DAY() 函数返回date_expression 中的日期值。
·MONTH()
MONTH() 函数语法如下:
MONTH (
MONTH() 函数返回date_expression 中的月份值。
与DAY() 函数不同的是,MONTH() 函数的参数为整数时,一律返回整数值1,即SQL Server 认为其是1900 年1 月。
·YEAR()
YEAR() 函数语法如下:
YEAR (
YEAR() 函数返回date_expression 中的年份值。
提醒:在使用日期函数时,其日期值应在1753年到9999年之间,这是SQL Server系统所能识别的日期范围,否则会出现错误。
·DATEADD()
DATEADD() 函数语法如下:
DATEADD (
DATEADD() 函数返回指定日期date 加上指定的额外日期间隔number 产生的新日期。参数“datepart” 在日期函数中经常被使用,它用来指定构成日期类型数据的各组件,如年、季、月、日、星期等。其取值如表4-9 所示:
·DATEDIFF()
DATEDIFF() 函数语法如下:
DATEDIFF() (
DATEDIFF() 函数返回两个指定日期在datepart 方面的不同之处,即date2 超过date1的差距值,其结果值是一个带有正负号的整数值。针对不同的datepart, DATEDIFF()函数所允许的最大差距值不一样,如:datepart 为second 时,DATEDIFF() 函数所允许的最大差距值为68: 年datepart 为millisecond 时,DATEDIFF() 函数所允许的最大差距值为24 天20 小时30 分23 秒647 毫秒。
·DATENAME()
DATENAME() 函数语法如下:
DATENAME (
DATENAME() 函数以字符串的形式返回日期的指定部分此部分。由datepart 来指定。
·DATEPART()
DATEPART() 函数语法如下:
DATEPART (
DATEPART() 函数以整数值的形式返回日期的指定部分。此部分由datepart 来指定。
DATEPART (dd, date) 等同于DAY (date)
DATEPART (mm, date) 等同于MONTH (date)
DATEPART (yy, date) 等同于YEAR (date)
·GETDATE()
GETDATE() 函数语法如下:
GETDATE()
GETDATE() 函数以DATETIME 的缺省格式返回系统当前的日期和时间,它常作为其它函数或命令的参数使用。
/*cast()类型转换函数*//*datepart()取部分日期函数*//*getdate()取当前服务器日期*/example:select cast(datepart(year,getdate()) as varchar)+‘年‘ as year,cast(datepart(month,getdate()) as varchar)+‘月‘ as month,cast(datepart(day,getdate()) as varchar)+‘日‘ as day.
Wednesday, March 21, 2007
baidu rpg teaching
http://hi.baidu.com/hnrob/blog/item/0d80758db065ce12b31bbaf3.html
http://www.abc400.com/sample/RPGbasic.htm#WRITE(生成新记录)
http://www.cnhacker.com/bbs/read.php?tid=37062
http://blog.chinaunix.net/u/9744/showart.php?id=52722
http://blog.chinaunix.net/u/9944/showart.php?id=119913
http://blog.chinaunix.net/u/646/showart_249330.html
http://hi.baidu.com/hnrob/blog/item/0d80758db065ce12b31bbaf3.html
http://www.abc400.com/sample/RPGbasic.htm#WRITE(生成新记录)
http://www.cnhacker.com/bbs/read.php?tid=37062
http://blog.chinaunix.net/u/9744/showart.php?id=52722
http://blog.chinaunix.net/u/9944/showart.php?id=119913
http://blog.chinaunix.net/u/646/showart_249330.html
Sunday, March 11, 2007
The tool for refix the broken *.rar file
today download something about as400 of trainning file,but the file is too big,but when i opened it,the "broken message" shows, so i found some tools to fix it . luckly it did..hehe
rar fix software green version
http://www.hjhjzx.com/ReadNews.asp?NewsId=47
Advanced RAR Repair(rar文档修复)
http://www.qgzxol.com/DownLoad/softdetail.aspx?ID=6594
Advanced RAR Repair V1.0 汉化版
http://www.xdowns.com/soft/4/163/2006/Soft_21508.html
today download something about as400 of trainning file,but the file is too big,but when i opened it,the "broken message" shows, so i found some tools to fix it . luckly it did..hehe
rar fix software green version
http://www.hjhjzx.com/ReadNews.asp?NewsId=47
Advanced RAR Repair(rar文档修复)
http://www.qgzxol.com/DownLoad/softdetail.aspx?ID=6594
Advanced RAR Repair V1.0 汉化版
http://www.xdowns.com/soft/4/163/2006/Soft_21508.html
Wednesday, March 7, 2007
使用 J2EE 连结器架构集成 CICS 和 WebSphere 应用服务器
使用 J2EE 连结器架构集成 CICS 和 WebSphere 应用服务器(上)
http://www-900.ibm.com/cn/support/nav/200402/p47-1.shtml
http://www.shubulo.com/forumdisplay.php?fid=17
http://www-900.ibm.com/cn/support/nav/200402/p47-1.shtml
http://www.shubulo.com/forumdisplay.php?fid=17
Saturday, February 10, 2007
google sitemap
I have tried many methods to increase the search results feedback from Google or Baidu Search engines. And also tried a way to generate a sitemap in a web.But u know the way just fit for wordpress and other blog sites that just support html or xml recording blogsites.And it not support blogger users,though blogger is auhorited by Google itself.After 30 minutes' waiting , i give up.coz it took me 15 minutes to generate a sitemap for my blog (lovertext),and finally it can not uploaded to the blogger.Faint....
Then i delaid to try to generate a sitemap in that way.Then ,today i find another way to make it.And luckly i made it.It is so easy to generate web sitemap ...Thanks to Ton(the owner of cyberciti.bizand i wanna to test by writing this post,I wanna know whether my blog's latest post can be included in Google's Search Engine,i hope it will show out the result satisfy me... if it not,i will faint again.....hehehe
then if it proved to be work,i will share it with u ,and hope to continue have fun with u in the world of blogger.
Then i delaid to try to generate a sitemap in that way.Then ,today i find another way to make it.And luckly i made it.It is so easy to generate web sitemap ...Thanks to Ton(the owner of cyberciti.bizand i wanna to test by writing this post,I wanna know whether my blog's latest post can be included in Google's Search Engine,i hope it will show out the result satisfy me... if it not,i will faint again.....hehehe
then if it proved to be work,i will share it with u ,and hope to continue have fun with u in the world of blogger.
Thursday, February 8, 2007
Subscribe to:
Posts (Atom)