小问题

2016-09-23

mysql 表中字段 kind,为字符串,可能会有一个或多个值(多个值用 分开,形如App,Web), 查找包含某些字符的记录:

select * from notification where find_in_set('App', kind)

2016-09-26

导出数据库文件: mysqldump -u root -p db_name > test_db.sql
导出某个表的数据: mysqldump -u wcnc -p test_db users> test_users.sql

2016-10-10

前几天升级了mac,显示导致vim 的 YouCompleteMe 崩溃,升级了XCode
今天装依赖的时候又 报Failed building wheel for pylibmc 搜索了一下,找到解决办法:http://stackoverflow.com/questions/30631299/error-when-installing-mysql-python-with-pip-install-in-osx-virtualenv, 需要重新安装 developer tools

2016-11-08

Using the decimal module from the standard library, you can retain the original precision and avoid floating point rounding issues:

>>> from decimal import Decimal
>>> Decimal('4.20') % 1
>>> Decimal('0.20')
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • MySQL 数据库常用命令 1、MySQL常用命令 create database name; 创建数据库 use...
    55lover阅读 4,829评论 1 57
  • 1/列出mysql数据库中的所有数据库sqoop list-databases -connect jdbc:mys...
    时待吾阅读 2,752评论 1 5
  • 在swift中用到is者个关键字,结果发现了其中一个莫名其妙的小问题 数组后面明明是一个Double类型,可是通过...
    codeCoder阅读 902评论 0 1
  • 亲爱的优优: 偶然的机会,知道你PAD中背景钢琴曲叫“夜的钢琴五”。搜狗音乐中有古筝、电子音乐等多个版本,但最好听...
    优优bama阅读 171评论 0 0
  • 被生活欺骗了,就当作是一笔买卖 被撕裂的心,无法替代 又何尝不是生活的另一种爱 让你杂陈五味,从头再来 绽放出非比...
    澄默时节阅读 370评论 18 21