摘要: http://www.cnblogs.com/huxi/archive/2010/12/05/1897271.html 阅读全文
posted @ 2014-04-14 18:01 小郭学路 阅读(133) 评论(0) 推荐(0)
摘要: 1、判断数据库名是否合法import redbname = "test_"result = re.match("[a-zA-Z_0-9]{1,}$",dbname)print result注意点:必须以[a-zA-Z_0-9]为结尾2、匹配建表语句 re_for_create_table = ... 阅读全文
posted @ 2014-04-14 11:35 小郭学路 阅读(223) 评论(0) 推荐(0)