摘要:
create view SystemInfoasSELECT table_name,ordinal_position as colorder,column_name as colName, case extra when 'auto_increment' then 1 else 0 end as IsIdentity, case column_key when 'pri' then 1 else 0 end as isKey, data_type as type,0 as bits, case when character_maximum_length is N 阅读全文
摘要:
使用方法call USP_P_SPLITPAGE 'select * from tt',1,10;------------------------DELIMITER $$DROP PROCEDURE IF EXISTS `USP_P_SPLITPAGE` $$CREATE DEFINER=`root`@`localhost` PROCEDURE `USP_P_SPLITPAGE`(`sql` varchar(1024),pagesize int,CURRENTPAGE int)BEGIN SET @skip= (CURRENTPAGE - 1 )* pagesize ; SET 阅读全文