-- u表,p存储过程,v视图 -- webpark新库,oldpark旧库 SELECT NTABLE = A.NAME, OTABLE = B.NAME FROM webpark..SYSOBJECTS A LEFT JOIN oldpark..SYSOBJECTS B ON A.NAME = B.NAME WHERE ISNULL(B.NAME,
获取所有表名: SELECT table_name FROM information_schema.tables WHERE table_schema='cc' AND table_type='base table'; 获取表的所有字段: SELECT column_name FROM information_schema.columns WHERE table_schema='cc