我有沒有主鍵的數據庫視圖。它有一組唯一標識視圖中的一行的列,但其中三列可以是null。我試圖創建基於這些四列的複合主鍵的實體,而是從視圖中檢索數據時出現此錯誤: The primary key read from the row ... during the execution of the query was detected to be null. Primary keys must not
我有一個名爲「Test」的MongoDB數據庫。在這個數據庫中,我收集了「人員」集合中的人員。人們集合包含以下文件的數組: class Person{
public int Id { get; set; }
public string Name { get; set; }
public Address[] Addresses { get; set; }
}
cl
我有一個名爲my_view的視圖,它是使用以下遷移創建的。 class CreateMyView < ActiveRecord::Migration
def change
execute <<-SQL
drop view if exists my_view
SQL
execute <<-SQL
CREATE OR REPLACE V