dbh = 'mysql://root:mysql@127.0.0.1/coffeetest'; $map = array(); $dbi->fetchMap("SHOW TABLES", $map); $tables = array_keys($map); // 找出含有cid字段的表 $cid_... ...
分类:
数据库 时间:
2018-05-05 13:24:55
阅读次数:
212
1.创建表 CREATE TABLE `cardPcitrue`( `id` INT AUTO_INCREMENT NOT NULL PRIMARY KEY COMMENT'编号', `cId` INT NULL COMMENT'点卡编号', `path` VARCHAR(200) NULL COM ...
分类:
数据库 时间:
2018-04-28 16:52:14
阅读次数:
181
http://exam.upc.edu.cn/problem.php?cid=1292&pid=5 题目描述 As you know, escape rooms became very popular since they allow you to play the role of a video ...
分类:
其他好文 时间:
2018-04-28 01:25:54
阅读次数:
178
http://www.cnblogs.com/yangfengwu/p/8948935.html 学东西一定是打破沙锅学到底,有问题就解决问题,不要试图去回避或者放弃解决当前的问题,如果总是回避或者放弃你就永远无法越过了..你的能力也就这样了,你的自学和解决问题的能力永远也不会得到提高....这东西 ...
分类:
其他好文 时间:
2018-04-27 23:57:58
阅读次数:
744
学习链接: http://www.icourse163.org/learn/ZJU-200001?tid=1002316004#/learn/content?type=detail&id=1003086473&cid=1003636045 指针的应用场景 1.交换两个变量 2.函数返回多个值,某些值 ...
分类:
其他好文 时间:
2018-04-27 22:59:05
阅读次数:
216
题目链接:http://exam.upc.edu.cn/problem.php?cid=1326&pid=7 题意:给你一个可能存在错误的加法等式,问最少删除多少列能使等式成立。 eg: 思考:如果某一列已经成立,如上图的1+4=5,他一定可以加到前面最长的成立的等式上,类似于最长上升子序列,不过要 ...
分类:
其他好文 时间:
2018-04-21 19:47:59
阅读次数:
134
create table class_grade( gid int primary key auto_increment, gname varchar(16) not null unique ); create table class( cid int primary key auto_increm ...
分类:
数据库 时间:
2018-04-21 19:28:26
阅读次数:
226
Controller参数绑定的类型 Controller的绑定参数类型6种。没有参数(系统默认类型);简单类型(Intager,Double)等;pojo类(对象);数组;集合;HashMap等。 我们用一个例子,用代码表达: 用户(uid,uname,upass,birthday,cid) 省份( ...
分类:
编程语言 时间:
2018-04-17 11:38:57
阅读次数:
182
var obj = {"name":"名字","age":"18"};var temp = "";for(var i in obj){//用javascript的for/in循环遍历对象的属性 temp += i+":"+obj[i]+"\n";}alert(temp);//结果:cid:C0 \n ...
分类:
Web程序 时间:
2018-04-11 21:42:35
阅读次数:
184
题目链接:http://115.28.203.224/problem.php?cid=1010&pid=0 题目描述 判断一个数是否为"水仙花数",所谓"水仙花数"是指这样的一人数:其各位数字的立方和等于该数本身。例如:371是一个"水仙花数",371=3^3+7^3+1^3. 输入 一个三位数 输 ...
分类:
其他好文 时间:
2018-04-06 18:43:13
阅读次数:
136