Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下 SQL Server 查询:
SELECT ISNULL(MIN(P), 999) AS FLD FROM (SELECT '0' AS P) AS T WHERE (1 > 4)
为什么这个查询的输出是 '*' ?
请解释
谢谢
ISNULL使用第一个参数的数据类型。
ISNULL
这是varchar(1)因为那是文字的数据类型'0'
varchar(1)
'0'
999将被截断,因此 SQL Server 显示“*”
999
好的,我在 2001 年开始使用 html 和 css。我曾经做过这样的事情(创建一个具有“垂直列”布局的网站):
<html> <head> <title>Vertical-column layout</title> </head> <body> <table id="doc" > <!-- header -->