MSSQL for Metadata中是否有与num_distinct all_tab_columns(Oracle)等效的列?

时间:2016-10-19 17:56:11

标签: sql-server

我正在寻找一个与all_tab_columns相同的表,其中包含在oracle中的num_distinct列。我在MSSQL中也需要相同的东西

有人可以帮我在MSSQL元数据表中找到Num_distinct吗?

提前致谢

1 个答案:

答案 0 :(得分:0)

对于属于索引的列,SQL Server的DBCC SHOW_STATISTICS返回$j('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, defaultDate: '2017-05-12', selectable: true, selectOverlap: false, weekends: false, eventOverlap: false, select: function(start, end) { var title = prompt('Kostenstelle:'); var eventData; id = Date.now(); if (title) { eventData = { id: id, title: title, start: start, end: end }; $j('#calendar').fullCalendar('renderEvent', eventData, true); // stick? = true } saveDay({'id': id,'title': title, 'start': start, 'end': end}); $j('#calendar').fullCalendar('unselect'); }, eventResize: function (event, dayDelta, minuteDelta) { saveRange(event); }, eventDrop: function (event, delta, revertFunc, jsEvent, ui, view ){ saveDrop(event, view); }, eventReceive: function (event, dayDelta, minuteDelta){ saveDay(event); }, eventRender: function(event, element) { if(event.className != 'disableDelete'){ element.append( "<span class='closeon'>x</span>" );} element.find(".closeon").click(function() { $j('#calendar').fullCalendar('removeEvents',event._id); deleteDay(event); }); }, droppable: true, // this allows things to be dropped onto the calendar drop: function() { // is the "remove after drop" checkbox checked? if ($j('#drop-remove').is(':checked')) { // if so, remove the element from the "Draggable Events" list $j(this).remove(); } }, editable: true }); ,它与Oracle的FROM ( SELECT F_FILE_CREATION_DATE, F_FILE_ARCHIVED_RELATIVE_PATH, F_FILE_ARCHIVED_NAME, K_AIRCRAFT from T_FLOW f )x left join ( select c.config_date, c.aircraft_id, c.configurationfrom t_conf c ) y on y.aircraft_id = x.K_AIRCRAFT select x.F_FILE_CREATION_DATE, x.F_FILE_ARCHIVED_RELATIVE_PATH, x.F_FILE_ARCHIVED_NAME, x.K_AIRCRAFT, y.config_date, y.aircraft_id, y.configuration;

相反

请注意文档中的以下警告:

 FROM (
SELECT  
F_FILE_CREATION_DATE,    
F_FILE_ARCHIVED_RELATIVE_PATH,   
F_FILE_ARCHIVED_NAME,   
K_AIRCRAFT   
from T_FLOW f )x join 
(
  select c.config_date, c.aircraft_id, c.FILEFILTER from t_conf c
) y on y.aircraft_id = x.K_AIRCRAFT  where y.config_date < x.f_file_creation_date    
select    
x.F_FILE_CREATION_DATE,  
x.F_FILE_ARCHIVED_RELATIVE_PATH,   
x.F_FILE_ARCHIVED_NAME,   
x.K_AIRCRAFT,   
y.config_date,
y.aircraft_id,
y.filefilter;

无法在非索引列上收集统计信息。所以我认为没有相应的东西。