1.not in方法select top 10 from books where id not in(select top 30 id from books)2.row_number()函数select * from (select *,row_number() over (order by id)...
                            
                            
                                分类:
数据库   时间:
2015-01-27 09:15:01   
                                阅读次数:
145
                             
                         
                    
                        
                            
                            
                                1.复制表结构1.1 含有主键等信息的完整表结构CREATE table 新表名 LIKE book;1.2 只有表结构,没有主键等信息create table 新表名 select * from books;或create table 新表名 as (select * from book);或cr...
                            
                            
                                分类:
数据库   时间:
2015-01-23 16:11:42   
                                阅读次数:
171
                             
                         
                    
                        
                            
                            
                                这里主要是将数据库中的常用操作用LAMBDA表达式重新表示了下,用法不多,但相对较常用,等有时间了还会扩展,并将查询语句及LINQ到时也一并重新整理下:1.select语句:books.Select(p=>new { p.Title, p.UnitPrice, p.Author});//需用匿名方式...
                            
                            
                                分类:
其他好文   时间:
2015-01-22 17:26:47   
                                阅读次数:
220
                             
                         
                    
                        
                            
                            
                                1 protected void btnExport_Click(object sender, EventArgs e) 2 { 3 DataTable tbBooks = (DataTable)Session["Books"]; 4 if (tbBoo...
                            
                            
                                分类:
Web程序   时间:
2015-01-22 14:49:24   
                                阅读次数:
294
                             
                         
                    
                        
                            
                            
                                Recommended BooksHere is a list of books which I have read and feel it is worth recommending to friends who are interested in computer science.Machine...
                            
                            
                                分类:
其他好文   时间:
2015-01-22 09:20:20   
                                阅读次数:
161
                             
                         
                    
                        
                            
                            
                                这里主要是将数据库中的常用操作用LAMBDA表达式重新表示了下,用法不多,但相对较常用,等有时间了还会扩展,并将查询语句及LINQ到时也一并重新整理下:1.select语句:books.Select(p=>new{p.Title,p.UnitPrice,p.Author});//需用匿名方式2.wh...
                            
                            
                                分类:
Web程序   时间:
2015-01-20 20:13:53   
                                阅读次数:
205
                             
                         
                    
                        
                            
                            
                                本文参考http://yangjunfeng.iteye.com/blog/4013771. books.xml 1 2 3 4 5 Thinking in JAVA 6 7 8 Core JAVA2 9 10 ...
                            
                            
                                分类:
其他好文   时间:
2015-01-20 17:39:30   
                                阅读次数:
178
                             
                         
                    
                        
                            
                            
                                Here is a list of books which I have read and feel it is worth recommending to friends who are interested in computer science.Machine LearningPattern ...
                            
                            
                                分类:
其他好文   时间:
2015-01-16 18:31:46   
                                阅读次数:
221
                             
                         
                    
                        
                            
                            
                                (from 新表 in db.books where 新表.bookid a.OrderDetails.Count()).Take(count).ToList();数据上下文.Albums数据表.倒序排序(条件为按照各数据关联的OrderDetails数据表中数据的条数).拿记录(count条).....
                            
                            
                                分类:
数据库   时间:
2015-01-15 19:43:18   
                                阅读次数:
160
                             
                         
                    
                        
                            
                            
                                select top 5 * from books where id not in(select top (5*(5-1)) id from Books order by id) order by idselect top 2 * from Users where id not in(select ...
                            
                            
                                分类:
数据库   时间:
2015-01-11 17:31:08   
                                阅读次数:
141