SQLCODE in Cobol

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

franco
Posts: 921
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: SQLCODE in Cobol

Post by franco »

I know select from code, but I do not open database I only use tables as I need.
In Foxpro I use select from Mytable, fields, where somthing, into table temp, for something
When I try Dragans sample I get libmysql.dll not found. Where is a good place to get libmysql.dll.
All The Best,
Franco
Canada
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 »

File libmysql.dll is part of MySQL instalation

...\mysql\bin\libmysql.dll

and just copy in aplication folder
franco
Posts: 921
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: SQLCODE in Cobol

Post by franco »

Which website would I get mysql from ? Microsoft.
All The Best,
Franco
Canada
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 »

Ask google for mysql
Oracle is owner now
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 »

Hola... Dento de HeidiSQL están todas las .dll
Subo la que uso yo y funciona perfecto tanto para MySql como para MariaDB !
Hay que copiarla a la carpeta del proyecto.

Hi... Inside HeidiSQL have all .dll
I use this and work perfect with MySql and MariaDB !
Put it in the project folder.
Attachments
libmysql.zip
(945.74 KiB) Downloaded 97 times
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
franco
Posts: 921
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: SQLCODE in Cobol

Post by franco »

Thank for help. Claudio, I got the SQL`S. I still can not get Dragon`s or Serge`s to work. As Serge suggeted I think I will Start a new thread.
I am Tied up gor a while.
All The Best,
Franco
Canada
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: SQLCODE in Cobol

Post by serge_girard »

Franco, do you have a database allready? SQL is not as complicated as you think but first you need a database...

Serge
There's nothing you can do that can't be done...
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 »

I think one of the easiest ways to start with MySQL https://www.uniformserver.com/
download, unpack and run

Note: this is the local version, if you need a real server install MySQL database
contains apache and php, it doesn't matter
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: SQLCODE in Cobol

Post by serge_girard »

And SQL is much fun!
There's nothing you can do that can't be done...
franco
Posts: 921
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: SQLCODE in Cobol

Post by franco »

I can not say,

select name from customer
// or
select * from customer
I use tables not a database.
Now I use index to temp (created from seconds()) and seems to do all i used to do in Foxpro with select from.
All The Best,
Franco
Canada
Post Reply