我们经常会遇到这样的要求:用户给发过来一些数据,要我们直接给存放到数据库里面,有的是Insert,有的是Update等等,少量的数据我们可以采取最原始的办法,也就是在SQL里面用Insert
into来实现,但是如果有几十条几百条甚至上千条数据的时候继续写单独的SQL语句的话那就惨了,其实有两种简单...
分类:
数据库 时间:
2014-05-15 16:48:12
阅读次数:
347
SQL> conn scott/tiger@vm_databaseConnected
to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0Connected as
scott。。。。。。SQL> drop table student...
分类:
数据库 时间:
2014-05-15 16:33:54
阅读次数:
332
1.带有html标记内容提交(使用web编辑器):js: cshtml: @using
(Html.BeginForm("Add")) { 标题: ...
分类:
其他好文 时间:
2014-05-15 15:54:44
阅读次数:
255
??
Add servlet-api.jar and jsp-api.jar from Tomcat 6.0 library to ecipse project....
分类:
编程语言 时间:
2014-05-15 11:21:43
阅读次数:
446
题意:在一个二维矩阵中找到给定的值。矩阵从上到下从左到右有序
思路:二维空间的二分查找
先在一维里找中间位置,再将该位置转为二维空间里的下标
注:下标比较难弄,得注意点
复杂度: 时间O(log n),空间O(1)
相关题目:
Search Insert Position...
分类:
其他好文 时间:
2014-05-15 07:24:42
阅读次数:
253
题意:输出一个元素在一个已排序的数组中的位置,如果不存在输出它应该插入的位置
思路:二分查找,如果找到就输出位置,找不到就输出它应该插入的位置
复杂度:时间O(log n),空间O(1)
相关题目:
Search for a Range
Search a 2D Matrix...
分类:
其他好文 时间:
2014-05-15 05:57:32
阅读次数:
271
【题目】
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Out...
分类:
其他好文 时间:
2014-05-15 05:13:49
阅读次数:
306
#include
#include
#include
#include
#include
#include
using namespace std;
struct ssss
{
ssss *c[26];
int n,v;
}*s;
void insert(char *str,int v)
{
int i,j,k,l;
ssss *p,*q;
p=...
分类:
其他好文 时间:
2014-05-14 15:06:54
阅读次数:
357
1 sbin/nginx -V 查看上次执行时用了哪些参数2
./configure—add-module=../module_name_dir3 make (别用 make install 否则会重新安装)4 把
./objs/nginx 复制到 ../sbin/nginx
分类:
其他好文 时间:
2014-05-14 13:36:38
阅读次数:
247
-- 创建数据表,定义存储数据信息表的结构--CREATE TABLE T_Student (name
text, age integer, phoneNo text);--
删除数据表,通常在不需要使用某一个表的时候,才会用到,日常开发中极少会用到此命令--DROP TABLE T_Student...
分类:
移动开发 时间:
2014-05-14 11:20:03
阅读次数:
395