To add up all the numbers in a list, you can use a loop like this: Total is initialized to 0. Each time through the loop, x gets one element...
分类:
其他好文 时间:
2014-07-16 19:29:14
阅读次数:
234
There are several ways to delete elements from a list. If you know the index of the element you want, you can use pop: pop modifies the list...
分类:
其他好文 时间:
2014-07-16 19:26:12
阅读次数:
189
USE tempdbGOSET NOCOUNT ON--创建表结构IF OBJECT_ID(N'ClassB', N'U') IS NOT NULL DROP TABLE ClassBGOCREATE TABLE ClassB(ID INT PRIMARY KEY, Name VARCHAR(...
分类:
数据库 时间:
2014-07-15 23:31:38
阅读次数:
357
Constructing selectorsFor convenience,response objects exposes a selector on .selector attribute,it's totally ok to use this shortcut when possible.//...
分类:
其他好文 时间:
2014-07-15 09:18:04
阅读次数:
220
- ojdbc6.jarClasses for use with JDK 1.6. It contains the JDBC driver classesexcept classes for NLS support in Oracle Object and Collectiontypes.- ojd...
分类:
数据库 时间:
2014-07-14 23:54:06
阅读次数:
631
ZooKeeper Programmer's GuideDeveloping Distributed Applications that use ZooKeeperhttp://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.htmlZooKe...
分类:
其他好文 时间:
2014-07-14 15:34:05
阅读次数:
208
开发时数据调用往往会用到占位符,然而刚开始使用很容易碰见sql语句在SQLServer中查询时显示“—”,如下代码:
#region 先判断是否有记录,再确定使用哪条命令
//查询数据库 20140713
commandText = "use zzbjcdzz select *"
+ "from...
分类:
数据库 时间:
2014-07-14 13:39:37
阅读次数:
230
打开数据服务netstartmssqlserver关闭数据服务netstopmssqlserver创建数据库createdatabase数据库名引用数据库Use数据库名创建表createtable表名约束--primarykey主键--identity自动增长--default默认--check约束--notnull不为空删除表delete表名--delete删除表内容droptable表..
分类:
数据库 时间:
2014-07-14 11:48:49
阅读次数:
266
create database data_Test --创建数据库data_Test GO use data_Test GO create table tb_TestTable --创建表 ( id int identity(1,1) primary key, userName nvarchar(2...
分类:
其他好文 时间:
2014-07-13 19:11:16
阅读次数:
292
1. DataBases a.show databases; b.create database mydatabase; c.use mydatabase;2.Tables a.show tables; b.create table if not exists mytable ( ...
分类:
数据库 时间:
2014-07-13 19:07:23
阅读次数:
298