页首Html代码

摘要: select T.COLUMN_NAME,t.data_type ,c.comments from ALL_TAB_COLUMNS T ,user_col_comments c where 1=1 and c.table_name = t.table_name and c.c... 阅读全文
posted @ 2014-05-22 17:52 binsite 阅读(203) 评论(0) 推荐(0) 编辑
摘要: select * from all_tab_comments-- 查询所有用户的表,视图等select * from user_tab_comments -- 查询本用户的表,视图等select * from all_col_comments--查询所有用户的表的列名和注释.select * fro... 阅读全文
posted @ 2014-05-22 11:23 binsite 阅读(169) 评论(0) 推荐(0) 编辑
摘要: SELECT F.TABLE_NAME, F.CONSTRAINT_NAME, F.COLUMN_NAME, F.POSITION, P.TABLE_NAME, P.COLUMN_NAME, P.POSITION ,R.OWNER FROM USER_CONSTRAINTS R, USER_CO... 阅读全文
posted @ 2014-05-22 11:18 binsite 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 二、SQL Structur query language 结构化查询语言,是操作关系型数据库中的对象。 DDL(Data definition language 数据定义语言),用于建表或删表操作,以及对表约束进行修改 create table , alter table , drop tabl... 阅读全文
posted @ 2014-05-21 00:14 binsite 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 刚安装好的oracle和plsql,以oracle11g为例1、刚安装好后有两个默认的系统账号和初始密码:sys/change_on_install,system/manager2、如果忘记了或不知道密码,可进入sqlplus中直接修改 用户名:sqlplus /as sysdba 密码:(空)... 阅读全文
posted @ 2014-05-20 22:52 binsite 阅读(255) 评论(0) 推荐(0) 编辑
摘要: [Q]怎么样查询特殊字符,如通配符%与_ [A]select * from table where name like 'A/_%' escape '/' [Q]如何插入单引号到数据库表中 [A]可以用ASCII码处理,其它特殊字符如&也一样,如 insert into t values('i'||... 阅读全文
posted @ 2014-05-20 18:33 binsite 阅读(307) 评论(0) 推荐(0) 编辑
摘要: oracle11g怎么安装在此不作说明,网上到处都是,主要针对PL/SQL的安装配置下载地址:PLSQL Developer: http://pan.baidu.com/s/1nt7G4cDX64下使用plSql:http://pan.baidu.com/s/1i3yvlMdOracle 11g 6... 阅读全文
posted @ 2014-05-17 14:33 binsite 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 开源分享最近一个客户要做一个将数据直接输出到指定格式的Excel模板中,略施小计,搞定其中包含了对Excel的增行和删行,打印预览,表头,表体,表尾的控制using System;using System.Collections.Generic;using System.Linq;using Sys... 阅读全文
posted @ 2014-05-08 14:33 binsite 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 本文以实际应用为目的,不在理论方面深究1、打开跟踪器或2、新建跟踪-事件选择-列筛选器,HostName默认不显示,需勾选“显示所有列”,如果希望只跟踪某一客户端,可按下面的设置HostName,其它过滤同理3、查看或搜索数据库执行语句,主要执行语句在TextData中 阅读全文
posted @ 2014-05-06 21:20 binsite 阅读(918) 评论(0) 推荐(0) 编辑
摘要: if exists(select 1 from sysobjects where name ='proc_exporttb' and xtype ='P') drop proc proc_exporttbgo create proc proc_exporttb@sqlstr varcha... 阅读全文
posted @ 2014-04-23 13:56 binsite 阅读(591) 评论(0) 推荐(0) 编辑

页脚Html代码