my english is bad, i'm sorry.
I download PgDAC demo.
I want to use these components in the future,
but I the beginning programmer and hope for your help.
I download demo project, but this software is very difficult for me.
I suffer some months and is compelled to address for the help.
I have Delphi 2010, postgreSQL 9.0
I have:
added Button1, Button2, Button3 on the Form
added PgConnection1 on the Form
{ Create Database -------------------------------------------------}
procedure TForm1.Button1Click(Sender: TObject);
begin
PgConnection1.Server:= 'localhost';
PgConnection1.Port:=5432;//<-- your port number
PgConnection1.Username:= 'postgres';
PgConnection1.Password:= '11111';
PgConnection1.Connect;
PgConnection1.ExecSQL('CREATE DATABASE mybase WITH OWNER = postgres ENCODING = ''UTF8''',[null]);
end;
{ Create Database ===========================}
{Connect --------------------------------------------------------}
procedure TForm1.Button2Click(Sender: TObject);
begin
PgConnection1.username:='postgres';
PgConnection1.password:='11111';
PgConnection1.database:='mybase';
PgConnection1.connected:=true;
end;
{Connect ================================}
{Disconnect ------------------------------------------------------}
procedure TForm1.Button3Click(Sender: TObject);
begin
PgConnection1.connected:=false;
end;
{Disconnect ==============================}
Help me please:
How to create the table?
How to add a strings in the table?
How to read from the table of a strings and add in TMemo (for example).
What I should use components?
Set an example please.
I hope for your help
