摘要:
In MySQL there is no support for database renaming.In order to rename a MySQL database you can do one of the following:1. Create new database and rename all tables in the old database to be in the new database:CREATE database new_db_name;RENAME TABLE db_name.table1 TO new_db_name, ... 阅读全文
随笔档案-2012年12月
[C++] localtime 注意事项
2012-12-07 12:15 by Firefly727, 1610 阅读, 收藏,
摘要:
1、localtime返回的指针是个静态成员变量1 struct tm *pstTmp1, *psttTmp2;2 time_t tTime1 = , tTime2;3 4 tTime1 = 1354852746;5 tTime2 = 13500000006 7 pstTmp1 = localtime(&tTime1);8 pstTmp2 = localtime(&Time2); 上述中的pstTmp1和pstTmp2指向的变量是同一个,所以它们的值是一样的。需要注意调用完localtime后,立马取出其值。2、localtime传入的参数。 VS 2010 ... 阅读全文
[数据库] SQLite常见问题解答
2012-12-03 21:11 by Firefly727, 609 阅读, 收藏,
摘要:
SQLite常见问题解答Frequently Asked Questions如何建立自动增长字段?SQLite支持何种数据类型?SQLite允许向一个integer型字段中插入字符串!为什么SQLite不允许在同一个表不同的两行上使用0和0.0作主键?多个应用程序或一个应用程序的多个实例可以同时访问同一个数据库文件吗?SQLite线程安全吗?在SQLite数据库中如何列出所有的表和索引?SQLite数据库有已知的大小限制吗?在SQLite中,VARCHAR字段最长是多少?SQLite支持二进制大对象吗?在SQLite中,如何在一个表上添加或删除一列?我在数据库中删除了很多数据,但数据库文件没有 阅读全文
浙公网安备 33010602011771号