我有一张客户表
@Html.DisplayNameFor(model => model.UserEmail)
@Html.EditorFor(model => model.UserEmail)
和varchar表
customers
+---------+
| id |
+---------+
| 1 |
这是我的选择陈述
customers_varchar
+-------+-----------+
| id | value |
+-------+-----------+
| 1 | firstname |
+-------+-----------+
| 1 + lastname |
我得到的是
SELECT c.id, cv.value FROM customers AS c
LEFT JOIN customer_varchar AS cv
ON c.id = cv.id;
我想要的是
ROW 1
1 | firstname
ROW 2
1 | lastname