IF EXIST (select * from [Table-2] where ID = *anyID* and STATUS = *anyStatus*) SELECT TOP1 * from [Table-2] where ID = *anyID* and STATUS = *anyStatus* else SELECT TOP 1* from [Table-2] where ID = *anyID* 因此,我需要一个通用表,其中包含表1中的所有列和表2中的值
我有一个名为“DB100”的数据库,并且有实体“TABLE-1”和“TABLE-2”。这两个实体都保存着数以千计的记录,并将每天增加记录。cache = ignite.GetOrCreateCache<string, int>("DB100");
cache[“TABLE-2”] = EntityCollection-2;
var sqlp = new SqlFieldsQuery("select a.Id, b.Name from T