You are developing a COBOL application that needs to retrieve customer information from a database. Which SQL statement should you use for this purpose?
- EXEC SQL DELETE
- EXEC SQL INSERT
- EXEC SQL SELECT
- EXEC SQL UPDATE
To retrieve data from a database in COBOL, you would use the EXEC SQL SELECT statement. This statement is used to query the database and retrieve specific information, such as customer details, based on the specified conditions.
Loading...
Related Quiz
- In COBOL, _______ locks allow multiple users to read a file simultaneously, but only one user can write to it.
- In COBOL file handling, what is the purpose of the "Extend" access mode?
- You are tasked with designing a COBOL program that needs to access records in an indexed file using a unique key. Which access mode and file organization would you choose, and why?
- How does the EXIT statement differ from the CONTINUE statement in COBOL error handling?
- In COBOL, what is the significance of the DEPENDING ON clause when used with the OCCURS clause?