ChinaUnix.net
相关文章推荐:

create table

create table products(

id int not null auto_increment,
title varchar(100) not null,
description text not null,
image_url varchar(200) not null,
price decimal(10,2) not null,
primary key(id)
);

by I_am_tbag - MySQL - 2011-12-23 03:17:48 阅读(774) 回复(0)

相关讨论

Creating a Basic table Adding and Controlling Borders Adding a border to the table can help distinguish the data cells and make the table more readable. Use the BORDER attribute in the table element to set a one-pixel border for the table border="1"> Alberts $160,251 $245,600 $132,000 $537,851 Setting Spacing and Padding The CELLSPACING attribute adds space between cells, whereas the CELLPA...

by 紫冰 - Java文档中心 - 2006-04-19 10:43:09 阅读(734) 回复(0)

use DW_Part go --有三个存储过程,依次执行为 --SP1 Sp_Promotion_activity_fact_tmp_Groupby --SP2 SP_Promotion_activity_fact_Insert_missing_data_for_YTD --SP3 SP_Promotion_activity_fact_update -- 共享表 tmpForYtd if exists (select * from dbo.sysobjects where id = object_id(N\'tmpForYtd\') and xtype=\'U\') drop table dbo.tmpForYtd go Select \'1000000000000000000000000000\' as...

by liyihongcug - SQL server - 2007-07-20 20:21:04 阅读(2860) 回复(0)

create table lb_tj as select number,sum(cost) cost from rec_213_200705 where number=888888' group by number 这个语句在从ORACLE角度来看这样的语句是没问题的,不知INFORMIX的create table要怎么用才可以有上面的效果。

by gdmmlibo - Informix - 2007-06-15 21:51:52 阅读(3528) 回复(3)

drop table t_theme; create table netbank.t_theme (id_theme serial not null , theme varchar(50), choice_num integer(4), choice1 varchar(50), choice2 varchar(50), choice3 varchar(50), choice4 varchar(50), choice5 varchar(50), choice6 varchar(50), standard_answer varchar(2), ); 如果要制定id_theme 为主键,,应该如何加? 多谢!

by yebinlei - Informix - 2005-09-05 13:06:15 阅读(1254) 回复(1)

我用下面的语句创建了一张表,create table db_test2 (country varchar(30),location varchar(30),address varchar(50),username varchar(30)) tablespace test storage(initial 100k next 50k maxextents 20); ,接着查看了 INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS 106496 1 2147483645 为什么和我上面的创建的不符合呢;max_extents怎么会...

by net_xiaobao - Oracle - 2005-07-04 08:41:09 阅读(1099) 回复(1)

create TEMPORARY table actors ( id DECIMAL(03), name VARCHAR(40), CONSTRAINT actor_id CHECK (id < 150) ) ; insert into actors(id, name) values(1, 'camera'); insert into actors(id, name) values(2, 'flash mem'); "TEMPORARY 此表只是为这次会话创建,并且在会话结束后自动删除。当临时表存在时,同名的永久表是不可见的。" 但我觉得在对话结束后并没有自动删除 为什么上面的语句不...

by wsswh - PostgreSQL - 2003-12-13 10:16:26 阅读(2111) 回复(0)

我要建立c表,是a 表和b表的组合, 下列语句不对, 请sqlserver 高手指教。。 create table c select a.* ,b.corcode ,b.stockshort from ccc a join stockcode b on a.stockcode=b.stockcode :)

by sherrywong - SQL server - 2002-06-03 14:12:49 阅读(3080) 回复(1)

在SQL中用create table创建一个文件名长度为11的文件, 提示 Alternative name for file QSQJRN not allowed. SQL system error. 而在另一库下却能建立成功, 请问什么原因。。。。。。

by amitabha4 - AS400 - 2010-12-13 20:50:32 阅读(1934) 回复(0)

对于create table IF NOT EXIST… SELECT ,如果给定IF NOT EXISTS ,而且表已经存在的情况下 做下列事 create table 的表定义部分被忽略,甚至表定义与目前存在的表不一致,也不会抛出错误 如果存在的表的列数和由SELECT部分的列数不匹配的话 SELECT到的值会被靠右填充到表列中 如: SELECT产生m列,而表定义有n列,当(mn时,会有错误产生 mysql> create table t1 (a int,b int); mysql> insert int t1 values (1,1),(1,2); mys...

by justlooks - MySQL - 2010-03-13 10:12:26 阅读(8062) 回复(1)

如果是在大数据量下,做这个操作对数据的内存、负载有多少影响。

by reiller - Oracle - 2009-11-11 21:39:03 阅读(2395) 回复(1)