搜索到与相关的文章
数据库相关

点播记录查询

selectmobileNo,sendTimefrom(selectsubstring(convert(char(50),mobileNo),1,7)asmobileNo,sendTimefromdbo.SmsSendRecord)awherea.mobileNoin(selectconvert(char(50),mobileNo)fromTable_3wherecode=832)anda.sendTimebetween'2009-6-8'and'2009

系统 2019-08-12 01:52:48 2292

数据库相关

Binary Tree Level Order Traversal

问题:从上到下打印二叉树的每一行分析:先搜出二叉树的高度,然后遍历高度,每次搜索一个高度classSolution{public:intdfs(TreeNode*root){if(root==NULL)return0;if(root->left==NULL&&root->right==NULL)return1;returnmax(dfs(root->left),dfs(root->right))+1;}voidDdfs(TreeNode*root,intt

系统 2019-08-12 01:52:25 2292

数据库相关

Mongodb中更新的学习小结

今天继续很久没学习的mongodb的简单学习,今天来看的是更新。先来看简单的用法:useupdatetest>switchedtodbupdatetest首先插入一下:db.things.insert({name:"test1"})db.things.find({name:"test1"})会找到:{"_id":ObjectId("50f1778ea5ec290b7773303b"),"name":"test1"}更新的格式为:db.collection.

系统 2019-08-12 01:52:12 2292

数据库相关

poj 2777 Count Color

http://poj.org/problem?id=2777不多说了和贴海报那题一样http://www.cnblogs.com/liulangye/archive/2012/06/11/2545349.html代码:#include#include#include#include#include#include#include#incl

系统 2019-08-12 01:51:52 2292

数据库相关

数据库存取时间比较

在页面上直接建GRID,直接用SQL取数据,比较不同的SQL的反应时间。这个页面上的GRID是分页显示的,每个页面是12行,查询方法是:DateTimedate1=DateTime.Now;DataTabledt=Query.ProcessSql("SQL语句","mes");IMesGrid1.DataSource=dt;IMesGrid1.DataBind();DateTimedate2=DateTime.Now;Response.Write(date

系统 2019-08-12 01:51:32 2292

数据库相关

项目存储过程编写

好久没有维护项目开发了,写存储过程开始有点手生了,真后悔没有早点总结一下以往项目经验啊。所以这里就开个篇记录点心得:1.首先要写好每个存储过程的版本说明,应该包括:版本号、修改日期、修改人、项目名称、应用范围(工作类型或者功能块)、修改描述如:--Ver.1.02008-10-16EnliXXXproject(装配工作站):新建功能2.名称命名很重要,既然要表达出功能的意义,又要尽量统一描述方式项目存储过程编写

系统 2019-08-12 01:51:28 2292

Python

python小程序(3)输入某年某月某日,计算这一天是这一年的第几天

思路先判断是闰年还是平年,再调用相应函数计算每个月多少天,然后加上前几个月的所有天数和这个月的天数importsys#输入某年某月某日,计算这一天是这一年的第几天whileTrue:year=int(input('Year:'))mon=int(input('Month:'))day=int(input('Day:'))ifyear<0ormon>12ormon<0orday>31orday<0:#判断输入数值是否超过正常范围你,若是,报错退出程序prin

系统 2019-09-27 17:55:01 2291

Python

python logging模块用法

talkischeap,showmethecode.importloggingimportlogging.handlerslogger=logging.getLogger("logger")handler1=logging.StreamHandler()#handler2=logging.FileHandler(filename="test.log",encoding="utf-8")#每隔1000Byte划分一个日志文件,备份文件为3个#handler2

系统 2019-09-27 17:54:58 2291