技术笔记
delphi10.3数据库组件TFDConnection链接数据库
 moons   2020-08-22 09:48:25   116
专栏分类: delphi
    procedure TMainForm.FormCreate(Sender: TObject);
    begin
      condata.DriverName := 'MSAcc    MySQL   MSSQL';
      condata.Params.Add('Server=127.0.0.1');
      condata.Params.Add('Database=data');
      condata.Params.Add('User_name=');
      condata.Params.Add('Pass_word=');
	  con2.Params.Add('CharacterSet=gb2312');
      condata.Connected := True;
      condata.Open;
    end;
Copyright © mos360.cn By Moons Soft Studio 百度统计