摘要: /*分为四步 *//*第1步:创建临时表空间 */create temporary tablespace user_temp tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; /*第2步:创建数据表空间 */create tablespace user_data logging datafile 'D:\oracle\oradata\Oracle9i\user_data.db 阅读全文
posted @ 2014-03-10 12:42 shyscool 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Oracle经典子查询及分页基础详解一:1.如何显示高于自己部门平均工资的员工的信息。(1)查询出各个部门的平均工资和部门号。select deptNO,avg(sal)mysal from emp group by deptNO;(2)把上面的查询看成是一张子表。select a2.ename,a2.sal,a2.deptNO,a1.mysal from emp a2,(select deptNO,avg(sal)mysal from emp group by deptNO) a1 where a2.deptNO=a1.deptNo and a2.sal>a1.mysal;在fro.. 阅读全文
posted @ 2012-07-21 23:18 shyscool 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 在一个类中创建另外一个类,叫做成员内部类。这个成员内部类可以静态的(利用static关键字修饰),也可以是非静态的。由于静态的内部类在定义、使用的时候会有种种的限制。所以在实际工作中用到的并不多。 在开发过程中,内部类中使用的最多的还是非静态地成员内部类。不过在特定的情况下,静态内部类也能够发挥其独特的作用。 一、静态内部类的使用目的。 在定义内部类的时候,可以在其前面加上一个权限修饰符static。此时这个内部类就变为了静态内部类。不过由于种种的原因,如使用上的限制等等因素(具体的使用限制,笔者在下面的内容中会详细阐述),在实际工作中用的并不是很多。但是并不是说其没有价值。在某些... 阅读全文
posted @ 2012-05-19 23:17 shyscool 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 官方API注释如下:Enables or disables the type filter window. If enabled, typing when this view has focus will filter the children to match the users input. Note that the Adapter used by this view must implement the Filterable interface.大概意思就是但listview获得当前焦点的时候,相应用户输入的匹配符。筛选出匹配的listview Items。String[] menus 阅读全文
posted @ 2012-05-11 15:04 shyscool 阅读(4681) 评论(2) 推荐(0) 编辑
摘要: android中布局一般都有两种方式,一种xml声明,另外一种则是程序声明:xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientati 阅读全文
posted @ 2012-05-11 14:36 shyscool 阅读(358) 评论(0) 推荐(0) 编辑
摘要: A dependency exists between two elements if changes to the definition of one element (the supplier) may cause changes to the other (the client). With classes, dependencies exist for various reasons: One class sends a message to another; one class has another as part of its data; one class mentions a 阅读全文
posted @ 2012-05-08 23:28 shyscool 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Drawable资源Drawable资源是对图像的一个抽象,你可以通过getDrawable(int)得到并绘制到屏幕上。这里有几种不同类型的Drawable:Bitmap File一个Bitmap图像文件(.png、.jpg或.gif)。BitmapDrawable。Nine-Patch File一个带有伸缩区域的PNG文件,可以基于content伸缩图片(.9.png)。NinePatchDrawable。State List一个XML文件,为不同的状态引用不同的Bitmap图像(例如,当按钮按下时使用不同的图片)。StateListDrawable。Color定义在XML中的资源,指定一 阅读全文
posted @ 2012-04-21 23:59 shyscool 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 定义和用法 strip_tags() 函数剥去 HTML、XML 以及 PHP 的标签。编辑本段语法 strip_tags(string,allow)参数描述string必需。规定要检查的字符串。allow可选。规定允许的标签。这些标签不会被删除。编辑本段提示和注释 注释:该函数始终会剥离 HTML 注释。这点无法通过 allow 参数改变。使用:$term = strip_tags(substr($_POST['search_term'],0, 100));$term = mysql_escape_string($term); 阅读全文
posted @ 2012-03-04 21:43 shyscool 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 【在phpmyadmin创建数据库,并指定字符集】表类型根据自己需要选,这里选MyISAM(非事务); 整理选择 gbk_chinese_ci 也就是gbk字符集 gbk_bin 简体中文, 二进制。gbk_chinese_ci 简体中文, 不区分大小写。在刚才创建的数据库插入数据库再浏览时发现是乱码为什么呢?是因为数据库为gbk字符集,而我们操作时没有指定为gbk 回到数据库首页可以看到 mysql 连接校对默认的latin1_bin。我们将其改为gbk_chinese_ci再插入一条数据。看,这条已经正常了【解决php读取数据库乱码】仍以数据库mysqlcode为例 复制代码 代码如下: 阅读全文
posted @ 2012-02-27 20:11 shyscool 阅读(199) 评论(0) 推荐(0) 编辑
摘要: private void button5_Click_1(object sender, Reenters e) { //watercolorist Excel.Application excel = new Excel.Application(); excel.Application.Workbooks.Add(true); //生成字段名称 for (int i = 0; i < dataGridView2.ColumnCount; i++) { excel.Cells[1,i + 1] = dataGridView2.Columns[i].HeaderText; if (y == 0 阅读全文
posted @ 2012-01-29 10:02 shyscool 阅读(708) 评论(0) 推荐(1) 编辑