wordpress数据库描述<转>
?请注意,在wp的标准安装过程中表之间的完整性不是强制性的,比如文章和评论之间。如果你正在创建操作数据库的插件或扩展,你的代码应该做些清理工作,以便没有无用的记录留在表里。比如当外键被删除时,使用一个SQL命令集来删除其它表中的数据(不要忘记提醒用户,在进行此类操作前进行备份)。
When a new additional site is created, the site-specific tables, similar to?the stand-alone tables above, are created. Each set of tables for a site are created with the site ID (blog_id) as part of the table name. These are the tables that would be created for site ID?2?and?table_prefix?wp:
The data of the main site are stored in unnumbered tables.
comment_parent索引.post_author索引.spam和deleted字段到users table.option_name.comment_post_ID?列为 bigint(20), unsigned.link_category?列.post_category?列.taxonomy.name?字段?varchar(55)?->?varchar(200).name?到?term table.post_parent?到?posts table.enum?类型字段改为?varchar(20):comment_approved?fieldlink_visibleautoloadpost_status,?comment_status,?ping_statuscomment_approved_date_gmt?和?comment_date_gmt?到?comments table.term_order?字段到?term_relationships tablecategories,?link2cat和?post2cat表.option_can_override,?option_type,?option_width,?option_height,?option_description, and?option_admin_level)'pending'到posts table的post_status字段.linkcategories表. 链接分类数据合并到categories表, 重设IDs.post_type字段到posts table?(in 2.0.x,?post_status?=?'static'?for?Pages)'future'?posts table的?post_status字段 , 代替2.0.x版本中的?NOW().?http://codex.wordpress.org/zh-cn:%E6%95%B0%E6%8D%AE%E5%BA%93%E6%8F%8F%E8%BF%B0#Table:_wp_comments