1.配置文件添加paginationInterceptor @Configuration @MapperScan("fama.cost.*.mapper") public class SpringConnectionFactory { @Bean public MybatisPlusInterceptor paginationInterceptor() { MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor()
from sysobjects where name ='proc_exporttb' and xtype ='P') drop proc proc_exporttb go create proc proc_exporttb @sqlstr varchar(max), --查询语句,如果查询语句中使用了order by ,请加上top 100 percent ), --文件存放目录 ), --文件名 )='\' --要创建的工作表名,默认为文件名 as begin ),),@out int ),
查询语句: SQL sever 查询语句: 1.查询所有字段: select * from UserInfo 2.条件筛选 (如查询UserInfo中的UserName) select UserName from UserInfo where语句: select * from UserInfo where sex='男' and Major='计算机' (and/or) top语句: top 5* ... ... order by ... ... desc(desc标示降序--不写