2017年12月13日

摘要: #include <stdio.h>#include <time.h>int main(void){ time_t tick; struct tm tm; char s[100]; tick = time(NULL); tm = *localtime(&tick); strftime(s, size 阅读全文
posted @ 2017-12-13 17:59 lydstory 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 我们用的都是 int ,毕竟 时间戳 可以用FROM_UNIXTIME()等时间函数转换成时间格式,个人感觉 int 比 datetime 计算 和 比较 简单一点,还有是就是 感觉 数据量大的话 int 应该比 datetime 更快 一点,我们公司 数据库大牛 ,建的所有的数据表关于 时间的都是 int 阅读全文
posted @ 2017-12-13 17:58 lydstory 阅读(517) 评论(0) 推荐(0) 编辑
摘要: afx_msg LRESULT OnMyIconNotify(WPARAM wParam,LPARAM lParam); vc6 可以是void vs2015不可以 ON_MESSAGE(MYWM_NOTIFYICON, CMtextDlg::OnMyIconNotify) 前面必须加类名 阅读全文
posted @ 2017-12-13 16:01 lydstory 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://jingyan.baidu.com/article/fcb5aff7b3a025edaa4a7130.html 设置自增列 phpmyadmin 把A_I选中 就是AUTO_INCREMENT http://blog.csdn.net/Weicleer/article/details 阅读全文
posted @ 2017-12-13 14:38 lydstory 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: sqr::IDatabase *db=NULL;IDbConnection *conn = NULL;int main(int argc, char* argv[]) { db = GetDatabase(); conn =db->CreateConnection(); conn->execute( 阅读全文
posted @ 2017-12-13 11:12 lydstory 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 线程 和 事件中 变量 not captured 把变量定义为 static 或者添加为全局变量(放在main之前) 阅读全文
posted @ 2017-12-13 11:09 lydstory 阅读(76) 评论(0) 推荐(0) 编辑

导航