数据库类
sherryxuehua
这个作者很懒,什么都没留下…
展开
-
postgres中录入gis数据
--假如当前目录下有完整的china.shp文件(应该有三个同名不同扩展名.dbf,.shp,.shx的文件),需要把其--中数据输入到上述的wen2数据库中的数据表china_postgis中,具体操作为(操作用户为postgres):--1.把shp转换成sql-- 命令 shp文件 要生成的表名 生成的建立表的sql--$bin>shp2pgsql c...2008-11-04 17:08:48 · 155 阅读 · 0 评论 -
postgres数据库的备份与还原
--备份数据库\bin>pg_dump -U postgres -d mydb >mydb.bak--还原数据库1.先建立要还原的数据库,一个空的数据库(aaa),不以任何库为模板2.执行\bin>psql -U postgres -d aaa ...2008-11-04 17:13:39 · 260 阅读 · 0 评论 -
sql server拆分字符串
创建表create table bb (studentid varchar(100),markstr varchar(50))insert into bb select '2002081108','AAAAAAAAAAAAAAAAAAAAAAAAA' union all select'2002081107','BBBBBBBBBBBBBBBBBBBBBBBBB' union al...2009-06-11 16:48:23 · 313 阅读 · 0 评论 -
oracle 10 数据库系统表应用
---查询共有多少个系统ownerselect distinct owner from all_tab_comments t--查询某个owner的所有表select * from all_tab_comments t where owner='MARINEADMIN'----列信息select * from all_col_comments t where owner='MA...2009-06-17 17:21:47 · 93 阅读 · 0 评论 -
sql server 查询所有表的记录数
--方法1,利用系统函数sp_MSforeachtable,任何表名都支持CREATE TABLE #temp (TableName VARCHAR (255), RowCnt INT)EXEC sp_MSforeachtable 'INSERT INTO #temp SELECT ''?'', COUNT(*) FROM ?'SELECT TableName, RowCnt FROM...2009-06-17 17:25:43 · 280 阅读 · 0 评论 -
--列出SQL SERVER 所有表,字段名,主键,类型,长度,小数位数等信息?
SELECT (case when a.colorder=1 then d.name else '' end) 表名, a.colorder 字段序号, a.name 字段名, (case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end) 标识, (case...原创 2009-06-17 17:26:26 · 106 阅读 · 0 评论 -
Oracle 修改数据库库表的各种情况和SQL语句
http://ppzh.iteye.com/blog/426991原创 2009-07-16 13:58:45 · 91 阅读 · 0 评论 -
Oracle表分区详解
转自[url]http://superyang0804.iteye.com/blog/772251[/url]此文从以下几个方面来整理关于分区表的概念及操作: 1.表空间及分区表的概念 2.表分区的具体作用 3.表分区的优缺点 4.表分区的几种类型及操作方法 5.对表分区的维护性操作. 一、表...原创 2011-04-06 10:25:42 · 95 阅读 · 0 评论 -
Orale数据库中的数据字典:
摘自:[quote]http://blogold.chinaunix.net/u/28131/showart_213763.html[/quote]原创 2011-04-11 16:36:05 · 94 阅读 · 0 评论