[fpc-pascal] FreePascal and MySQL ?

Michael Van Canneyt michael at freepascal.org
Mon Nov 20 20:21:40 CET 2017



On Mon, 20 Nov 2017, Terry A. Haimann wrote:

> Hello,
>
> This is probably a dumb question.  But I have data in a tstringlist that
> I want to upload into a MediumText MySQL column.  It looks to me as if
> you do something like:
>
> 	Stream := TMemoryStream.Create;
> 	MySL.SaveToStream(Stream);
> 	Blobfield(BcfQuery.FieldByName('JobMemo')).
> 		LoadFromStream(Stream);
>
> But what I don't understand is how I indicate what row to add the
> MediumText field to.

Edits are always on the current row in the dataset.

Michael.



More information about the fpc-pascal mailing list