create_relationship
Creates a relationship between two tables.
Syntax
create_relationship(<leftColumn>, <rightColumn>)
| Parameter | Type | Description |
|---|---|---|
| leftColumn | any | The Leftcolumn value. |
| rightColumn | any | The Rightcolumn value. |
Return values
Null
Usage
Creates a relationship between orders and customers tables based on customer_id.
create_relationship(orders, customers, orders.customer_id = customers.id)