摘要:
这里是一个使用日期函数的例子。下面的查询选择所有 date_col 值在最后 30 天内的记录。 mysql> SELECT something FROM tbl_name WHERE TO_DAYS(NOW()) - TO_DAYS(date_col) SELECT DAYO... 阅读全文
posted @ 2010-03-16 13:04
笑的自然
阅读(302)
评论(0)
推荐(0)
摘要:
前注:对于针对字符串位置的操作,第一个位置被标记为1。 ASCII(str) 返回字符串str的最左面字符的ASCII代码值。如果str是空字符串,返回0。如果str是NULL,返回NULL。mysql> select ASCII('2'); -> 50mysql> select AS... 阅读全文
posted @ 2010-03-16 12:58
笑的自然
阅读(170)
评论(0)
推荐(0)
摘要:
数据库 MysqlDROP PROCEDURE proc_insert_base_ip_geo;CREATE PROCEDURE proc_insert_base_ip_geo ( IN ns_start VARCHAR(15), IN ns_end VARCHAR(15), IN geo_de... 阅读全文
posted @ 2010-03-16 12:53
笑的自然
阅读(112)
评论(0)
推荐(0)
摘要:
EditPlus supports following regular expressions in Find, Replace and Find in Files command.ExpressionDescription/tTab character./nNew line..Matches an... 阅读全文
posted @ 2010-03-16 11:56
笑的自然
阅读(149)
评论(0)
推荐(0)

浙公网安备 33010602011771号