I have a table namedpayment_request
in MySQL
DESCRIBE payment_request
provides the following output,
Theorderbook
table is provided below,
I want to add theid
in thepayment_request
table inorderbook
as theid
column (second position) with the name after Foreign key topayment_request_id
.
What is the SQL used to run MySQL?
You can do this when creating the table:
Or by changing the form:
Also seethis tutorial.
First, you need to add a new column to the table
orderbook
Then add a constraint that defines the foreign key
refer to: