|
|
@ -14,25 +14,38 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return null; |
|
|
|
throw new NotSupportedException(); |
|
|
|
} |
|
|
|
} |
|
|
|
protected override string GetTableInfoListSql |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
|
|
|
FROM sysobjects s |
|
|
|
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('U') AND (tbp.Name='MS_Description' OR tbp.Name is null)";
|
|
|
|
return @"SELECT table_name name from user_tables where
|
|
|
|
table_name!='HELP' |
|
|
|
AND table_name NOT LIKE '%$%' |
|
|
|
AND table_name NOT LIKE 'LOGMNRC_%' |
|
|
|
AND table_name!='LOGMNRP_CTAS_PART_MAP' |
|
|
|
AND table_name!='LOGMNR_LOGMNR_BUILDLOG' |
|
|
|
AND table_name!='SQLPLUS_PRODUCT_PROFILE' |
|
|
|
UNION all |
|
|
|
select view_name name from user_views |
|
|
|
WHERE VIEW_name NOT LIKE '%$%' |
|
|
|
AND VIEW_NAME !='PRODUCT_PRIVS' |
|
|
|
AND VIEW_NAME NOT LIKE 'MVIEW_%' ";
|
|
|
|
} |
|
|
|
} |
|
|
|
protected override string GetViewInfoListSql |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
|
|
|
FROM sysobjects s |
|
|
|
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('V') AND (tbp.Name='MS_Description' OR tbp.Name is null)";
|
|
|
|
return @"SELECT table_name name from user_tables where
|
|
|
|
table_name != 'HELP' |
|
|
|
AND table_name NOT LIKE '%$%' |
|
|
|
AND table_name NOT LIKE 'LOGMNRC_%' |
|
|
|
AND table_name!= 'LOGMNRP_CTAS_PART_MAP' |
|
|
|
AND table_name!= 'LOGMNR_LOGMNR_BUILDLOG' |
|
|
|
AND table_name!= 'SQLPLUS_PRODUCT_PROFILE'";
|
|
|
|
} |
|
|
|
} |
|
|
|
#endregion
|
|
|
@ -129,7 +142,7 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return "select top 1 id from sysobjects"; |
|
|
|
return "select t.table_name from user_tables t where rownum=1"; |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion
|
|
|
|