会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晚晴小筑
Talk is cheap. Show me the code.
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
34
35
36
37
38
39
40
41
42
···
95
下一页
2014年1月2日
MySQL 添加列,修改列,删除列
摘要: MySQL 添加列,修改列,删除列 ALTER TABLE:添加,修改,删除表的列,约束等表的定义。 查看列:desc 表名;修改表名:alter table t_book rename to bbb;添加列:alter table 表名 add column 列名 varchar(30)...
阅读全文
posted @ 2014-01-02 19:36 N3verL4nd
阅读(236)
评论(0)
推荐(0)
2013年12月30日
mysql随机查询若干条数据
摘要: 在mysql中查询5条不重复的数据,使用以下: SELECT * FROM `table` ORDER BY RAND() LIMIT 5 就可以了。但是真正测试一下才发现这样效率非常低。一个15万余条的库,查询5条数据,居然要8秒以上 搜索Google,网上基本上都是查询max(id) * r...
阅读全文
posted @ 2013-12-30 10:53 N3verL4nd
阅读(206)
评论(0)
推荐(0)
使用正则表达式删除空格后的数字
摘要: 比如: 中国 388955 发展 327033 我们 322533 经济 321193 新华社 316631 工作 306773 国家 299998 问题 281797 一个 258903 这样的数据,我想删除空格数字。 方法: \s+([0-9]+) \s+ 匹配任意空白符1个至...
阅读全文
posted @ 2013-12-30 10:26 N3verL4nd
阅读(533)
评论(0)
推荐(0)
2013年12月23日
QT笔记:数据库总结
摘要: http://blog.csdn.net/reborntercel/article/details/6991147 #include QT += sql QSqlDatabase类实现了数据库连接的操作 QSqlQuery类执行SQL语句 QSqlRecord类封装数据库所有记录 QS...
阅读全文
posted @ 2013-12-23 19:19 N3verL4nd
阅读(677)
评论(0)
推荐(0)
2013年12月22日
qt连接mysql数据库实例
摘要: qt5.2版本已经封装进去了mysql驱动,所以省去了我们现编译的麻烦!!! #include #include #include #include int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); Q...
阅读全文
posted @ 2013-12-22 15:20 N3verL4nd
阅读(710)
评论(0)
推荐(0)
qt5连接sqlite数据库实例
摘要: 建库 在VS下新建qt console appication 代码: #include #include #include #include #include #pragma comment(lib, "Qt5Sql.lib")int main(int argc, char *argv[]...
阅读全文
posted @ 2013-12-22 13:03 N3verL4nd
阅读(617)
评论(0)
推荐(0)
2013年12月20日
forward和redirect的区别
摘要: SetCookie、GetCookie 自行设定有效日期: Response.Cookies(CookieName).Expires=#日期# 页面转发区别: 在Servlet中两种实现: forward方式:request.getRequestDi...
阅读全文
posted @ 2013-12-20 00:27 N3verL4nd
阅读(256)
评论(0)
推荐(0)
2013年12月19日
Day of Week
摘要: 题目1043:Day of Week 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:1544 解决:609 题目描述: We now use the Gregorian style of dating in Russia. The leap years are...
阅读全文
posted @ 2013-12-19 18:52 N3verL4nd
阅读(221)
评论(0)
推荐(0)
2013年12月15日
Rational Rose 2003 下载、破解及安装方法(图文)
摘要: 这些都是小编在网络大海中艰难寻找的资源,和亲测的安装方法,走过路过的给个掌声哈~ 你们的支持是我前进的动力! 主要用到的软件: (1)Rational Rose 2003 下载地址:http://pan.baidu.com/share/link?shareid=3737214...
阅读全文
posted @ 2013-12-15 09:47 N3verL4nd
阅读(176)
评论(0)
推荐(0)
2013年12月10日
qt5实现简单布局
摘要: layout.h #ifndef LAYOUT_H#define LAYOUT_H#include #include #include #include #include #include #include #include #include #include "ui_layout.h"cla...
阅读全文
posted @ 2013-12-10 23:36 N3verL4nd
阅读(403)
评论(0)
推荐(0)
上一页
1
···
34
35
36
37
38
39
40
41
42
···
95
下一页
公告