通过表单将数据插入数据库
摘要:form.php[php]view plaincopy<html><head></head><body><formaction="connect.php"method="post"target="connect.php">姓名:<inputtype="text"name="name"/><br/>生日:<inputtype="text"name="born"/>
阅读全文
posted @
2012-07-20 00:01
cbwcwy
阅读(698)
推荐(0) 编辑
【转】 SQL begin end 块作用
摘要:PL/SQL存储过程编程 收藏 /**author huangchaobiao*Email:huangchaobiao111@163.com*/PL/SQL存储过程编程(上)1. Oracle应用编辑方法概览答:1) Pro*C/C++/... : C语言和数据库打交道的方法,比OCI更常用;2) ODBC3) OCI: C语言和数据库打交道的方法,和ProC很相似,更底层,很少用;4) SQLJ: 很新的一种用Java访问Oracle数据库的方法,会的人不多;5) JDBC6) PL/SQL: 存储在数据内运行, 其他方法为在数据库外对数据库访问;2. PL/SQL答:1) PL/SQL(P
阅读全文
posted @
2012-07-16 10:26
cbwcwy
阅读(11481)
推荐(0) 编辑
linux目录架构
摘要:/ 根目录/bin 常用的命令 binary file 的目錄/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内 /boot/grub/menu.lst GRUB设置 /boot/vmlinuz 内核 /boot/initrd 核心解壓縮所需 RAM Disk/dev 系统周边设备/etc 系统相关设定文件 /etc/DIR_COLORS 设定颜色 /etc/HOSTNAME 设定用户的节点名 /etc/NETWORKING 只有YES标明网络存在 /etc/host.conf 文件说明用户的系统如何查询节点名 /etc/hosts 设定用户自已的IP与名字的对应表 /
阅读全文
posted @
2012-07-11 09:48
cbwcwy
阅读(253)
推荐(0) 编辑
C程序编译过程浅析
摘要:以GCC编译hellworld为例,简单总结如下。hello.c源代码如下:#include <stdio.h>int main(){ printf(“Hello, world.\n”); return 0;}通常我们使用gcc来生成可执行程序,命令为:gcc hello.c,默认生成可执行文件a.out其实编译(包括链接)的命令:gcc hello.c 可分解为如下4个大的步骤:· 预处理(Preprocessing)· 编译(Compilation)· 汇编(Assembly)· 链接(Linking)1. 预处理(Preprocessi
阅读全文
posted @
2012-07-11 00:33
cbwcwy
阅读(2671)
推荐(1) 编辑
shell中变量自增的实现方法
摘要:LinuxShell中写循环时,常常要用到变量的自增,现在总结一下整型变量自增的方法。我所知道的,bash中,目前有五种方法:1. i=`expr $i + 1`;2. let i+=1;3. ((i++));4. i=$[$i+1];5. i=$(( $i + 1 ))可以实践一下,简单的实例如下:#!/bin/bashi=0;while [ $i -lt 4 ];do echo $i; i=`expr $i + 1`; # let i+=1; # ((i++)); # i=$[$i+1]; #i=$(( $i + 1 ))done另外,对于固定次数的循环,可以通过seq命令来实现,就不需要
阅读全文
posted @
2012-07-11 00:24
cbwcwy
阅读(84883)
推荐(2) 编辑
shell:读取文件的每一行内容并输出
摘要:写法一:----------------------------------------------------------------------------#!/bin/bashwhile read linedo echo $linedone < file(待读取的文件)----------------------------------------------------------------------------写法二:----------------------------------------------------------------------------#!/
阅读全文
posted @
2012-07-10 23:56
cbwcwy
阅读(140963)
推荐(5) 编辑