example of FK definition

This commit is contained in:
Laurent Destailleur 2017-06-21 19:26:36 +02:00
parent 014cb4b004
commit a6f3eabf4d

View File

@ -14,4 +14,7 @@
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
ALTER TABLE llx_myobject ADD UNIQUE INDEX uk_fk_othertable (fk_othertable);
--ALTER TABLE llx_myobject ADD CONSTRAINT llx_mytable_field_id FOREIGN KEY (fk_field) REFERENCES llx_myOthertable(rowid);