Is there a way to delete from multiple tables with one SQL statement?
example
DELETE
FROM temp_approval
WHERE document_number = "$document_number'
DELETE
FROM temp_final
WHERE document_number = "$document_number'
DELETE
FROM temp_reasons
WHERE document_number = "$document_number'
DELETE
FROM temp_comments
WHERE document_number = "$document_number'
What I need to do is consolidate this into 1 SQL statement?
Can you do this?
ALso the same question with
INSERT
INTO
VALUES
example
DELETE
FROM temp_approval
WHERE document_number = "$document_number'
DELETE
FROM temp_final
WHERE document_number = "$document_number'
DELETE
FROM temp_reasons
WHERE document_number = "$document_number'
DELETE
FROM temp_comments
WHERE document_number = "$document_number'
What I need to do is consolidate this into 1 SQL statement?
Can you do this?
ALso the same question with
INSERT
INTO
VALUES