摘要: 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 阅读全文
posted @ 2011-08-30 14:33 kuailewangzi1212 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 使用方法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 阅读全文
posted @ 2011-08-30 14:31 kuailewangzi1212 阅读(163) 评论(0) 推荐(0) 编辑