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

sql server 2000 中的数据类型

declare @tmp_table table(tempvalue varchar(100) null)
insert into @tmp_table
select optname from dbo.MSreplication_options
select * from @tmp_table
alter table testTable
(
   decimal_field decimal null,
   datetime_field datetime null,
   money_field money null,
   numeric_field numeric null,
   binary_field binary null,
   sql_variant_field sql_variant null
  
)
alter table testTable
alter column decimal_field decimal(4,2)
insert into testTable(decimal_field) values(99.999)
insert into testTable(datetime_field) values('12/07/1998')
insert into testTable(datetime_field) values('12/07/1998')
insert into testTable(datetime_field) values(12/07/1998)
insert into testTable(datetime_field) values(12/07/1998)
insert into testTable(money_field) values(99999999999999.12345)
insert into testTable(money_field) values($999999.12345)
insert into testTable(money_field) values(cast('$999,999.12345' as money))
insert into testTable(binary_field) values(0xe)
insert into testTable (sql_variant_field) values('0xe')
insert into testTable (sql_variant_field) values(0xe)
insert into testTable (sql_variant_field) values(123)
insert into testTable (sql_variant_field) values(1234567.123)
select * from testTable
delete from testTable
create table 数字数据
(
  decimal_number decimal(8,6),
  numeric_number numeric(5,3)
)
insert into 数字数据
values(99.99999788,50)
insert into 数字数据
values(99.999999,300)


相关文档:

Access和SQL2000中语句的区别

1 ,对于日期字段字段
access表示为:#1981-28-12#
SQLSERVER2000表示为:''1981-02-12''
2,SQL语句区别,select ,update 在对单表操作时都差不多,
但多表操作时update语句的区别ACCESS与SQLSERVER中的Update语句对比:
SQLSERVER中更新多表的Update语句:
Update Tab1
SET a.Name = b.Name
from Tab1 a,Tab2 b
Whe ......

JAVA连接ACCESS,SQL Server,MySQL,Oracle

import java.sql.*;
/*
* JAVA连接ACCESS,SQL Server,MySQL,Oracle数据库
*
* */
public class JDBC {
  
public static void main(String[] args)throws Exception {
  
   Connection conn=null;
  
       //====连接ACCESS数据库 ......

[收拢] 用sqlite 执行标准 sql 语法

http://www.umgr.com/blog/PostView.aspx?bpId=36294
 1. 执行sql语句
int sqlite3_exec(sqlite3*, const char *sql, sqlite3_callbacksql 语法
, void *,  char **errmsg );
这就是执行一条 sql 语句的函数。
第1个参数不再说了,是前面open函数得到的指针。说了是关键数据结构。
第2个参数const char ......

PL/SQL块中如何调用DDL语句

在PL/SQL块中不能直接调用DDL语句,可以利用下面的方法进行调用
方法一:动态SQL
execute immediate 'CREATE TABLE newtable AS
                             &nb ......

Sql语句常用关键字

--语 句              功 能
--数据操作
SELECT   --从数据库表中检索数据行和列
INSERT   --向数据库表添加新数据行
DELETE   --从数据库表中删除数据行
UPDATE   --更新数据库表中的数据
--数据定义
CREATE TABLE  --创建一个数据库表
DROP TABLE   --从数据库中删除表
ALTER ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号