Mostly SQL-related question depends on the DBMS. Some DBMS allow us to combine ALTER table operations separated by commas.
Informix syntax is as follows:
ALTER TABLE one
ADD two_id INTEGER,
ADD CONSTRAINT FOREIGN KEY(two_id) REFERENCES two(id);
The syntax for IBM DB2 LUW is similar, repeating the keyword ADD but (if I read the diagram correctly) not requiring a comma to separate the added items.
Microsoft SQL Server syntax is as follows:
ALTER TABLE one
ADD two_id INTEGER,
FOREIGN KEY(two_id) REFERENCES two(id);
Note: Standard SQL allows a single operation in the ALTER TABLE statement, therefore in Standard SQL, it should be done in two steps.