摘要: SELECT COUNT(*) FROM `comment` SHOW CREATE TABLE `comment`CREATE TABLE `comment1` ( `id` INT(8) NOT NULL AUTO_INCREMENT, `blogUser` VARCHAR(20) NOT NULL, `replayUser` VARCHAR(20) NOT NULL, `articleId` INT(8) NOT NULL DEFAULT '0', `content` TEXT, `addTime` DATETIME NOT NULL, PRIMARY KEY (`id` 阅读全文
posted @ 2013-12-20 10:44 ﹏Sakura 阅读(2394) 评论(0) 推荐(0)
摘要: function get_hash_table($table,$uid){ $_str = crc32($uid); if($_str < 0 ){ $ret = "0".substr(abs($_str),0,1); }else{ $ret = substr($_str,0,2); } return $table."_".$ret;} echo get_hash_table('test','user1'); //test_01echo get_hash_table('test','dddda 阅读全文
posted @ 2013-12-20 10:00 ﹏Sakura 阅读(722) 评论(0) 推荐(0)