SQLCODE in Cobol

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: SQLCODE in Cobol

Post by Claudio Ricardo »

Hi,
cQuery := "select name from customer" return an array with only "name" field
cQuery := "select * from customer" return an array with all fields
See here:
https://www.w3schools.com/mysql/default.asp
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
dragancesu
Posts: 931
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: SQLCODE in Cobol

Post by dragancesu »

With SQL database you must know use command SELECT

https://www.mysqltutorial.org/mysql-sel ... -data.aspx

SQL is beautifuly language, only four command SELECT, INSERT, UPDATE, DELETE (data manipulation language)
other is DDL (data definition language) like CREATE, INDEX, RENAME,...
Post Reply