查询表时给字段赋默认值 sql

select 字段1,'X' as 字段2  from tableName w;

给表的字段2赋一个默认值X;

posted @ 2017-07-30 10:51  加菲猫and大白  阅读(4490)  评论(0编辑  收藏  举报