08 2017 档案
摘要://反向输出字符串 public class SwitchOne { public static void main(String[] args) { String aa= "hello"; //字符串 String [] bb=new String[aa.length()];//定义同等长度数组 for...
阅读全文
摘要:package aaaa; import java.io.File; import java.util.List; //调用自己本身的方法,递归 public class DiGuiDuQu { public static void main(String[]args){ File files =new File ("D:"); Di(files); ...
阅读全文
摘要:正则表达式;1.完全匹配,直接输入字母数字2.. 占位通配3.多个中的的任意一个[" "]import java.util.Scanner; public class RegularExpression { public static void main(String[] args) { System.out.print("请输入:"); ...
阅读全文
摘要:import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Collection;...
阅读全文
摘要:import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.n...
阅读全文
摘要:package one; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.Objec...
阅读全文
摘要:--分页查询 select rownum e,emp.* from emp where rownum3 ;--为什么使用别名 -- 更新可以锁定资源 update emp set ename='haha' where sal=3000; --插入也可以锁定资源 insert into emp(empno)values(9); commit; delete from emp where empn...
阅读全文
摘要:1.查看所有用户: select * from dba_users; select * from all_users; select * from user_users; 2.查看用户或角色系统权限(直接赋值给用户或角色的系统权限): select * from dba_sys_privs; select * from user_sys_privs; (查看当前用户所拥有的...
阅读全文
摘要:做一个表的insert的trigger,目的是只修改插入行的字段。 CREATE OR REPLACE TRIGGER TR_RME_SLOT BEFORE INSERT ON RME_SLOT FOR EACH ROW BEGIN IF (:NEW.POSITION >= 0 AND :NEW.POSITION = 0 AND :NEW.POSITION <10) THEN...
阅读全文

浙公网安备 33010602011771号