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.
我只想知道如何接收包含空行的所有列名(不是空表本身)
它们都有一些行,但没有填充任何数据。
有任何想法吗?
您可以通过
SELECT * FROM table WHERE column1='' AND column2=''
如果“”是您所说的空行
怎么样:
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn) FROM SomeTable
您也可以将其扩展到 3 列:
SELECT COALESCE(NULLIF(Address2,''), NULLIF(Address3,''), Address4)
我正在一个 spring mvc web 应用程序中工作,我正在尝试person使用 Spring 的 Validator 验证一个 db 对象,并尝试将验证器的结果以 JSP 形式显示为form:errors path="". 我在控制器中有服务器端方法:
person
form:errors path=""
@RequestMapping( va