`
fxyc
  • 浏览: 121580 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
perl LWP模块和IE浏览器会话共享真难啊,不过在不懈的努力下总算是实现了,庆祝下。呵呵
今天编写shell脚本往Netezza数据库写入日志,因为shell脚本是采用UTF8编码,因此使用nzsql命令执行sql时结果会乱码执行过程如下:nzsql -u ${DQ_NZ_USER} -pw ${DQ_NZ_PWD} -d ${DQ_NZ_DB} -host ${DQ_NZ_HOST} <<EOF\set ON_ERROR_STOP DELETE FROM PDATA.ADMIN.DQ_CHK_RESULT WHERE CHK_DATE = '$CURR_DATE' AND RULE_SUB_ID = $rule_cls_id; INSERT INTO ...
查询所有Informix数据表字段类型SQL语句: select a.tabname,b.colname,b.coltype,case   b.coltype when '0' then 'CHAR' when '1' then 'SMALLINT' when '2' then 'INTEGER' when '3' then 'FLOAT' when '4' then 'SMALLFLOAT' when '5' then 'DECIMAL' when '6' then 'SERIAL' when '7' then 'DATE' when '8' then 'MONEY' when '9' ...

需要学习的知识

1.OCI 2.Access Module 3.Automation源码 4.Automation模型结构  
用于执行操作系统指令,如:FPT,文件夹创建,和数据文件备份等操作。 DEFINE JOB OS_TEST ( DEFINE OPERATOR os_operator DESCRIPTION 'OS OPERTATOR' TYPE OS COMMAND ATTRIBUTES ( VARCHAR OsCmd = 'mkdir abc1', VARCHAR IgnoreError = 'Y', VARCHAR PrivateLogName = 'ddl_log' ); APPLY TO OPERATOR (os_oper ...
Teradata DDL OPERATOR一般用于建立和删除表,也可以用于删除Load OPERATOR时创建的Error Table。 DDL OPERATOR只能用于没有返回结果集的SQL。不能使用select,show,help语句。 DEFINE JOB DDL_TEST ( DEFINE OPERATOR ddl_operator TYPE DDL ATTRIBUTES ( VARCHAR TdpId = '192.168.58.131', VARCHAR UserName = 'dwetl', VARCHAR UserPassword = ...
show table tablename; help table tablename; SELECT UPPER(TRIM(T1.COLUMNNAME)), COALESCE(T1.COLUMNTITLE,'NO TITLE'), CASE WHEN T1.COLUMNTYPE = 'BF' THEN 'BYTE' WHEN T1.COLUMNTYPE = 'I1' THEN 'BYTEINT' WHEN T1.COLUMNTYPE ...

查询sql执行进度

  SELECT SE.SID,   OPNAME,   TRUNC(SOFAR / TOTALWORK * 100, 2) || '%' AS PCT_WORK,   ELAPSED_SECONDS ELAPSED,   ROUND(ELAPSED_SECONDS * (TOTALWORK - SOFAR) / SOFAR) REMAIN_TIME,   SQL_TEXT   FROM V$SESSION_LONGOPS SL, V$SQLAREA SA, V$SESSION SE   WHERE SL.SQL_HASH_VALUE = SA.HASH_VALUE   AND ...

查询表空间

  SELECT a.tablespace_name "表空间名",round(total/1024/1024/1024,4) "表空间大小Gb",round(free/1024/1024/1024,4) "表空间剩余大小Gb",   round((total-free)/1024/1024/1024,4) "表空间使用大小Gb",   ROUND((total-free)/total,4)*100 "使用率 %"   FROM (SELECT tablespace_name,SUM(by ...
SELECT i.owner AS index_owner, i.index_name, i.table_owner, i.table_name, i.uniqueness, c.column_position, c.column_name, c.descend, i.index_type, i.GENERATED, i.status, i.last_analyzed FROM all_indexes i, all_ind_columns c WHERE i.table_name = 'ODS_CAR_PRPCCOINS' --tab ...
Oracle中查询所有表的查询SQL   SELECT * FROM all_all_tables WHERE owner = 'ODS_USER' ORDER BY table_name  
Oracle中使用SQL查询表结构 SELECT NULL AS table_cat, t.owner AS table_schem, t.table_name AS table_name, t.column_name AS column_name, DECODE (t.data_type, 'CHAR', 1, 'VARCHAR2', 12, 'NUMBER', 3, 'LONG', -1, ...
网上找的一个锁定表头的例子。 比CSS的好用,这个不会有漂浮的感觉。

Oracle学习笔记

 1.查询表结构: DESCRIBE employees 2.Like语句     %代表一个或多个字符。    _代表一个字符。 3.数字函数       ROUND: 四舍五入      ROUND(45.926, 2) -> 45.93       TRUNC:截断      TRUNC(45.926, 2) -> 45.92         MOD: 求余      MOD(1600, 300) -> 100  4.DUAL     DUAL是一个‘伪表’,可以用来测试函数和表达式。 SELECT ROUND(45.923,2), ROUND(45 ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset ...
Global site tag (gtag.js) - Google Analytics