吴伟贤のBlog

Feed Rss

mysql select 字段固定值

03.04.2010, mysql, by .

select *,-1+0 as total_count from table
给total_count固定值-1
等于
select *,(-1) total_count from table

评论已关闭。