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.
我在下面的查询中写了EntityDataSource CommandText。
EntityDataSource CommandText
SELECT FIRST_NAME + ' ' + ISNULL(LAST_NAME, '') AS Customer FROM CUSTOMER
但有一个错误isnull cannot be resolved into valid type or function。
isnull cannot be resolved into valid type or function
我解决这个问题有多冷?我应该用什么代替ISNULL?
ISNULL
ISNULL在实体 sql中不支持。您将不得不求助于CASE WHEN:
CASE WHEN
CASE WHEN LAST_NAME IS NULL THEN '' ELSE LAST_NAME END
没办法。