--Count the length of stringselect lengthb('select * from scott.emp') as countted_by_byte, length('select * from scott.emp') as countted_by_char from ...
分类:
数据库 时间:
2015-06-30 00:00:51
阅读次数:
507
Python中对象方法的定义很怪异,第一个参数一般都命名为self(相当于其它语言的this),用于传递对象本身,而在调用的时候则不必显式传递,系统会自动传递。举一个很常见的例子:>>> class Foo:def bar(self, message):print(message)>>> Foo()...
分类:
编程语言 时间:
2015-06-29 23:50:23
阅读次数:
239
declare cursor cur_emp is select t.* from scott.emp t;begin for r_emp in cur_emp loop dbms_output.put_line(r_emp.empno ...
分类:
数据库 时间:
2015-06-29 23:48:20
阅读次数:
179
declare v_sal number;begin select t.sal into v_sal from scott.emp t where rownum <= 1; dbms_output.put_line(v_sal);end;
分类:
数据库 时间:
2015-06-29 23:48:05
阅读次数:
239
declare v_empno scott.emp.empno%type; v_sal scott.emp.sal%type; cursor cur_emp is select t.empno, t.sal from scott.emp t;begin op...
分类:
数据库 时间:
2015-06-29 23:47:12
阅读次数:
153
declare r_emp scott.emp%rowtype; cursor cur_emp is select t.* from scott.emp t;begin open cur_emp; loop fetch cur_emp ...
分类:
数据库 时间:
2015-06-29 23:42:44
阅读次数:
174
最简单的一个树莓派GPIO操作入门,这里记录以下先上连接图:卧槽。图真特么的大用到了GPIO的GND和#18针脚,这就不上图了,红色的线接的是18针脚,暗色的线接的是GND针脚,下面上Python的代码: 1 #coding:utf-8 2 import GPi.GPIO as GPIO 3 imp...
分类:
Web程序 时间:
2015-06-29 23:40:47
阅读次数:
290
declare r_emp scott.emp%rowtype; cursor cur_emp is select t.* from scott.emp t;begin open cur_emp; if cur_emp%isopen then db...
分类:
数据库 时间:
2015-06-29 23:36:21
阅读次数:
172
写这篇日志的目的,只是记录一下学习Python的一些问题,收获。今天,也是新入职第一天,也记录下日常生活的点滴。看看我能坚持多久吧。 早上,起床,洗漱,急忙赶往公司,结果还是迟到了,但是老板不在,然后就是装机,装机的过程中知道了公司早上上班时间很灵活,从8点半到9点半都可以,只是影响你下班的时间,心...
分类:
编程语言 时间:
2015-06-29 23:32:31
阅读次数:
139
http://blog.csdn.net/jeffreynicole/article/details/8271097
分类:
编程语言 时间:
2015-06-29 22:24:53
阅读次数:
116