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
创建一个添加FOOD的存储过程createorreplaceprocedureadd_food_pro(nameinvarchar,priceinnumber,descriptioninvarchar)
as
begin
insertintofood(f_name,f_price,description)values(name,price,description);
commit;
end;
--下面的代码是调用存储过程
begin
add_food_pro(‘..
分类:
数据库 时间:
2015-06-29 20:40:39
阅读次数:
145
Description
引入了const关键词,用于指定“常”对象及“常”对象成员,提供了对数据的一种保护机制,这C++语言的特色之一。但由此,也引出了一些语法上的要求。这些语法要求,实际上有一套完善的原则,需要熟知。
下面的程序,要利用输入的两个数创建一个对象,并调用printxy成员函数输入两数之和。下面的程序中,begin到end部分需要改动三处,才能保证程序符合要求并正确输...
分类:
其他好文 时间:
2015-06-29 20:33:39
阅读次数:
115
$('#example').DataTable({language: {"sProcessing":"处理中...","sLengthMenu":"显示 _MENU_ 项结果","sZeroRecords":"没有匹配结果","sInfo":"显示第 _START_ 至 _END_ 项结果,共 _T...
分类:
编程语言 时间:
2015-06-29 16:28:39
阅读次数:
683
nginx的架构主要是有一个主监控进程:master;三个工作进程:worker;还有Cache的两个进程。back-end-server是后端服务器,主要是处理后台逻辑。nginx作为代理服务器需要和前端web以及后端server通讯master大多数情况下是挂起的,直到有信号来,比如work.....
分类:
其他好文 时间:
2015-06-29 13:17:08
阅读次数:
130
一、VA Snippet Editor配置if () { } else { ... }ifeDoxygen - Class Comment (Long)csnDoxygen - Header Comment (Long)hdn函数注释/***函数名:$SymbolName$*功能:$end$*par...
分类:
其他好文 时间:
2015-06-29 13:14:51
阅读次数:
259
awk处理最后一行awk '{if(NR>1)print a;a=$0}END{print a="b"}' fileawk 'BEGIN{getline a}{print a;a=$0}END{print a="b"}' file
分类:
其他好文 时间:
2015-06-29 13:12:08
阅读次数:
116
substring 方法用于提取字符串中介于两个指定下标之间的字符substring(start,end)开始和结束的位置,从零开始的索引参数 描述 start 必需。一个非负的整数,规定要提取的子串的第一个字符在 stringObject 中的位置。 stop 可选。一个非负的整数,比要提取...
分类:
Web程序 时间:
2015-06-29 11:39:17
阅读次数:
115
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After ...
分类:
其他好文 时间:
2015-06-29 11:26:40
阅读次数:
95
写出一个程序,接受一个字符串,然后输出该字符串反转后的字符串。
#include
#include
using namespace std;
int Reserve(char *str)
{
int len=strlen(str);
char *begin,*end;
begin=str;
end=begin+len-1;
if(str!=NULL)
{
while(be...
分类:
其他好文 时间:
2015-06-29 00:36:16
阅读次数:
124