session数据存取的方法可通过session.serialize_handler方法来判断,反序列化可通过下面的unserialize方法,参考http://stackoverflow.com/questions/27813619/unserializing-php-session-data-from-db-table public static function unserialize($session_data) { $method = ini_get("session.serializ
mysql> select accid as uid,date(datetime) AS datetime from game.logLogin GROUP BY accid HAVING datetime='2013-8-20'; +---------+------------+ | uid | datetime | +---------+------------+ | | -- | | | -- | +---------+------------+ rows in set (0.00 sec
pandas大家用的都很多,像我这种用的不够熟练,也不够多的就只能做做笔记,尽量留下点东西吧. 筛选行: a. 按照列的条件筛选 df = pandas.DataFrame(...) # supposing it has 3 columns: a, b and c df[(df['a'] > 0) & (df['b'] < 0) | df['c'] > 0] b. 按照索引的条件筛选 needed_seq=[1,2,3,6] needed_df = df.loc[needed_s
usergrade表 1.找到里面username是null的行 SELECT * FROM usergrade WHERE ISNULL(USERNAME) SELECT * FROM usergrade WHERE USERNAME IS NULL 2.找到里面username不是null的行 SELECT * FROM usergrade WHERE USERNAME IS NOT NULL 3.列出所有的行,并且将username是null的字段替换为lxy SELECT IFNUL