sql server 2005中的空串


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

1,若或一字段值设置为n个空串即: ‘????????????????? ‘? 但在存储时依然会存为”,长度为0, 即数据库会自动完成trim操作, 故可用filed <> ” 来避免为空的字段
2,若字段值设置为’a???? ‘ ,则存储时为’a’, 长度为1
3,若字段值设置为’? a???? ‘ ,则存储时为’? a’, 长度为3
即:数据库会自动去掉字段值最后一个