上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页
摘要: ORA-01403未找到数据的错误。其中jkcode,serialid是varchar2(64)。语句是这样的:select jk_code,serial_id into jkcode,serialidfrom contract_account,customer,mp,meterwhere contract_account.customer_id=customer.customer_id and contract_account.contrac_id=mp.contrac_id and mp.mp_jd=meter.mp_id and meter.meter_id=meter_cursor.n 阅读全文
posted @ 2013-01-29 21:07 王超_cc 阅读(3911) 评论(0) 推荐(0) 编辑
摘要: import java.io.InputStream;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.Statement;import java.util.Properties;public class JdbcUtil { private static Properties env=new Properties(); static{ try{ InputStream is=JdbcUtil.class... 阅读全文
posted @ 2013-01-29 13:55 王超_cc 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 思想读取excel 文件中的内容 ,拼接字符串,将数据插入oracle数据库临时表中,再对临时表中的数据进行操作package com.cici.testExcel;import java.io.FileInputStream;import java.io.IOException;import java.util.ArrayList;import java.util.List; import org.apache.poi.xssf.usermodel.XSSFRow;import org.apache.poi.xssf.usermodel.XSSFSheet;import org.apache 阅读全文
posted @ 2013-01-27 14:22 王超_cc 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 表结构create table U ( NAME CHAR(64) not null, ID INTEGER not null PRIMARY KEY)tablespace CICI;comment on table U is '用户表'; create table GROU ( NAME CHAR(64) not null, ID INTEGER not null PRIMARY KEY)tablespace CICI;comment on table GROU is '权限组表'; CREATE TABLE U_GROU( G_ID INTEGER not 阅读全文
posted @ 2013-01-26 21:35 王超_cc 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 前言极端无奈使用该数据库,客户公司的极为低级技术导致本人需要安装SQL SERVER 2008数据库(多么的白痴啊,还用这种数据库,小白小白的客户). 下面记录下,本人安装连接SQL SERVER 数据库的全过程.1 安装软件1.1 SQLEXPR32_x86_CHS -- SQL SERVER 2008 安装文件E:\F\开发工具\DB\SQL2008\SQLEXPR32_x86_CHS.exe1.2 SQLManagementStudio_x86_ENU -- 这个事用来管理SQL Server 2008数据库的工具,最重要的是包含图形界面,哦耶~~2 SQL SERVER 2008 安装 阅读全文
posted @ 2013-01-26 19:07 王超_cc 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 查询用户表空间对应关系select username, default_tablespace from dba_users;查询表空间使用情况 select a.file_id "FileNo",a.tablespace_name "Tablespace_name", a.bytes "Bytes",a.bytes-sum(nvl(b.bytes,0)) "Used", sum(nvl(b.bytes,0)) "Free", sum(nvl(b.bytes,0))/a.bytes*100 &qu 阅读全文
posted @ 2013-01-25 13:37 王超_cc 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 错误信息description The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncatego 阅读全文
posted @ 2013-01-25 13:03 王超_cc 阅读(8733) 评论(0) 推荐(0) 编辑
摘要: 1 表太多,显示太乱.如何规整化表?1.1 全选Physical Diagram 范围内的表.右键 Auto-Layout.选择一种视图.1.2 统计表的整体信息以及表的个数.pdm 图右键 List of -->tables 阅读全文
posted @ 2013-01-25 09:52 王超_cc 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 表A表 B (AID是外键 指向A表的ID主键)查子表外键与主表主键不重合部分 (包含子表外键为NULL值的情况)select * from B where not exists ( select ID from A where a.id = b.aid );查看子表主键主表主键不重合的部分 (不包含子表外键为NULL值的情况)select * from B where b.aid not in ( select ID from A );普通查询不包含NULLselect * from B where aid !=1;包含NULL的查询 (需要特殊指定)select * from B wher 阅读全文
posted @ 2013-01-23 12:17 王超_cc 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 用记事本打开cvs文件然后另存为 ansi 编码 阅读全文
posted @ 2013-01-21 17:24 王超_cc 阅读(1212) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页