lushuaiyin的博客
lushuaiyin · 共 1200 篇文章
oracle----创建用户练习
-- Create the user create user YGWSTU default tablespace YGWSTU temporary tablespace TEMP profile DEFAULT password expire; -- Grant/Revoke object privileges grant select on YGWCRM.C_SALE_CONTRACT to YGWSTU; grant select on YGWCRM.C_SALE_CURRICULM to YGWSTU; grant select on YGWCRM.C_SALE_CUSTOMERINF…
2012-03-01 00:39 · 评论(0)
oracle----创建用户练习
2012-03-01 00:39 · 评论(0)
oracle---练习创建序列
-- Create sequence create sequence YGWSTUB_SEQUENCE minvalue 1 maxvalue 9999999999999999999999999999 start with 21 increment by 1 cache 20;
2012-03-01 00:34 · 评论(0)
oracle---练习创建序列
-- Create sequence create sequence YGWSTUB_SEQUENCE minvalue 1 maxvalue 9999999999999999999999999999 start with 21 increment by 1 cache 20;
2012-03-01 00:34 · 评论(0)
oracle---练习创建序列
2012-03-01 00:34 · 评论(0)
oracle-----procedure练习
create or replace procedure lsydisable as begin declare cursor mycursor is select table_name from USER_CONSTRAINTS; vtablename USER_CONSTRAINTS.table_name%TYPE; begin open mycursor; LOOP fetch mycursor into vtablename; exit when mycursor%notfound; if mycursor%found then dbms_output.put_line(vtablen…
2012-03-01 00:22 · 评论(0)
oracle-----procedure练习
create or replace procedure lsydisable as begin declare cursor mycursor is select table_name from USER_CONSTRAINTS; vtablename USER_CONSTRAINTS.table_name%TYPE; begin open mycursor; LOOP fetch mycursor into vtablename; exit when mycursor%notfound; if mycursor%found then dbms_output.put_line(vtablen…
2012-03-01 00:22 · 评论(0)
oracle-----procedure练习
2012-03-01 00:22 · 评论(0)
oracle算日期之差
select (sysdate-t.operate_time)*24*60*60 from ps_log_operate t select to_date('2012-2-29 10:31:30','YYYY-MM-DD HH24:MI:SS') -to_date('2012-2-27 10:31:30','YYYY-MM-DD HH24:MI:SS') from dual t -- 结果 2 select (to_date('2012-2-29 10:31:30','YYYY-MM-DD HH24:MI:SS') -to_date('2012-2-27 10:31:30','YYYY-MM…
2012-02-29 23:39 · 评论(0)
oracle算日期之差
select (sysdate-t.operate_time)*24*60*60 from ps_log_operate t select to_date('2012-2-29 10:31:30','YYYY-MM-DD HH24:MI:SS') -to_date('2012-2-27 10:31:30','YYYY-MM-DD HH24:MI:SS') from dual t -- 结果 2 select (to_date('2012-2-29 10:31:30','YYYY-MM-DD HH24:MI:SS') -to_date('2012-2-27 10:31:30','YYYY-MM…
2012-02-29 23:39 · 评论(0)
oracle算日期之差
2012-02-29 23:39 · 评论(0)
w3school学习sql语法笔记--SQL 通配符
在搜索数据库中的数据时,您可以使用 SQL 通配符。 SQL 通配符 在搜索数据库中的数据时,SQL 通配符可以替代一个或多个字符。 SQL 通配符必须与 LIKE 运算符一起使用。 在 SQL 中,可使用以下通配符: 通配符 描述 % 替代一个或多个字符 _ 仅替代一个字符 [charlist] 字符列中的任何单一字符 [^charlist] 或者 [!charlist] 不在字符列中的任何单一字符 原始的表 (用在例子中的): Persons 表: Id LastName FirstName Address City 1 Adams John Oxford Street London 2…
2012-02-29 10:27 · 评论(0)
w3school学习sql语法笔记--SQL 通配符
在搜索数据库中的数据时,您可以使用 SQL 通配符。 SQL 通配符 在搜索数据库中的数据时,SQL 通配符可以替代一个或多个字符。 SQL 通配符必须与 LIKE 运算符一起使用。 在 SQL 中,可使用以下通配符: 通配符 描述 % 替代一个或多个字符 _ 仅替代一个字符 [charlist] 字符列中的任何单一字符 [^charlist] 或者 [!charlist] 不在字符列中的任何单一字符 原始的表 (用在例子中的): Persons 表: Id LastName FirstName Address City 1 Adams John Oxford Street London 2…
2012-02-29 10:27 · 评论(0)
w3school学习sql语法笔记--SQL 通配符
2012-02-29 10:27 · 评论(0)
js自带弹出框alert,confirm,prompt用法
<html> <SCRIPT language=javascript> function del() { var name=window.confirm('确定删除?'); alert(name); if(name){ return true; }else{ return false; } } function pp() { var name2=window.prompt("请输入值","默认值11"); alert(name2); } </SCRIPT> <body> <button onclick = "del()">删除按钮</button><br> <button onclick =…
2012-02-28 11:22 · 评论(0)