C# : inner join中自连接咋用,能否给个实例?
C# : inner join 自连接咋用,能否给个实例? --------------------编程问答-------------------- SELECT dbo.GuestNews.ID, dbo.GuestNews.Title, dbo.GuestNews.[Content], dbo.GuestNews.AddTime, dbo.GuestNews.Editor, dbo.GuestNews.OrderID,dbo.GuestNews.TypeID, dbo.GuestNews.ImageUrl, dbo.GuestNews.SmallID, dbo.Guest.GuestName
FROM dbo.Guest LEFT OUTER JOIN
dbo.GuestNews ON dbo.Guest.GuestID = dbo.GuestNews.TypeID
这个就是 典型的例子 --------------------编程问答-------------------- 为啥说是C#中自连接? --------------------编程问答-------------------- C#中自连接? --------------------编程问答-------------------- select 列名 from 表名a a inner join 表名b b on a.name=b.name;
select * from a,b where a.name=b.name;
上面两句一个意思 --------------------编程问答-------------------- inner join 和 C#没有关系!楼主多看看SQL吧 --------------------编程问答-------------------- select 列名 from 表名a a inner join 表名b b on a.name=b.name;
select * from a,b where a.name=b.name;
上面两句一个意思
学习啦 --------------------编程问答-------------------- 这是sql语句啊,楼主可别以为在.aspx里出现就是c#语句啊.
补充:.NET技术 , ASP.NET