开发者

Not getting back enough columns

开发者 https://www.devze.com 2023-01-08 16:44 出处:网络
My query is as follows: select [Transaction].id, [User].name, EventType.EnglishDescription from [Transaction]

My query is as follows:

select [Transaction].id, 
       [User].name, 
       EventType.EnglishDescription
  from [Transaction] 
  join [User] on [Transaction].userid = [User].id 
  join EventType on EventType.id = 开发者_运维知识库[Transaction].EventType

I'm expecting to get back Transaction.id, User.name and EventType.EnglishDescription in the columns, however, I'm only getting back an id column.

When I leave out Transaction.id from the select, I get both the name and the EnglishDescription.

0

精彩评论

暂无评论...
验证码 换一张
取 消