mysql 插入语句什么时候用单引号,什么时候不用?1、先创建一个表create table user(username varchar(255),age int,marry boolean,birthday date);【注意,最后一个括号前面不能有逗号,否则出错】2、插入语句insert int...
分类:
数据库 时间:
2014-07-24 17:33:25
阅读次数:
281
由于json是那么的重要,因此PHP自从5.2就增加了对JSON的支持,主要包括两个函数:json_encode和json_decode。众所周知,json是一种数据的存储格式,我的博文里写过json的,在我的Javascript教程中,不明白的读者可以去搜一下。
比如我们新建一个xin.json文件,存储数据如下:
[{"name":"辛星","age":23},{"name":...
分类:
Web程序 时间:
2014-07-24 10:34:50
阅读次数:
269
no : name: age : sex : 更新 返回 ...
分类:
Web程序 时间:
2014-07-23 20:53:05
阅读次数:
257
/** * 人类 * @author rubekid */function Person(options){ //私有属性 var _name; //姓名 var _age; //年龄 /** * 构造函数 */ var _construct = function(){ _name ...
分类:
编程语言 时间:
2014-07-23 16:24:01
阅读次数:
223
1.1 查询出所有数据的指定键(name ,age ,country)db.persons.find({},{name:1,age:1,country:1,_id:0})2.查询条件2.查询条件2.1查询出年龄在25到27岁之间的学生db.persons.find({age: {$gte:25,$l...
分类:
数据库 时间:
2014-07-23 12:13:36
阅读次数:
275
E. Invitation CardsTime Limit: 8000msMemory Limit: 262144KB64-bit integer IO format:%lld Java class name:MainIn the age of television, not many people...
分类:
其他好文 时间:
2014-07-22 22:37:14
阅读次数:
278
Invitation CardsDescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this f...
分类:
其他好文 时间:
2014-07-22 22:35:15
阅读次数:
238
在编写struts2 的验证框架的时候 需要注意几点 1.编写的验证框架的配置文件要和被验证的Action的名称有一定的联系 age:Acton的名称:LoginUserAction 配置文件名:LoignUserAction-validation.xml 当Action里面得方法不...
分类:
其他好文 时间:
2014-07-22 22:32:15
阅读次数:
172
1.package com.gufengxiachen.java.reflectiontest; public class Person { private String name; private int age; private static int total; pub...
分类:
编程语言 时间:
2014-07-22 00:24:33
阅读次数:
287
1.工厂模式 工厂模式是一种常用的创建对象的模式,可以使用以下函数封装创建对象的细节:function CreatePerson(name,age){var p=new Object(); p.name=name; p.age=age; p.speak=function(){ console...
分类:
编程语言 时间:
2014-07-22 00:11:38
阅读次数:
275