Тёмный

How to do an SQL DELETE in Delphi 

Mr Long Education - IT & CAT
Подписаться 50 тыс.
Просмотров 12 тыс.
50% 1

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@masculinemastery-1
@masculinemastery-1 2 года назад
Thank you Mr Long. You're a great help.
@mahmoudhassan6627
@mahmoudhassan6627 Год назад
Wonderful sir -- Thank you from Libya
@shakeelamlay130
@shakeelamlay130 6 лет назад
a true life saver
@youcefdebih2660
@youcefdebih2660 6 лет назад
thanks !
@Connor-ec5vs
@Connor-ec5vs 5 лет назад
You're the best
@zachambrose625
@zachambrose625 Год назад
Can I use both a query and adotable using both sql and delphi code to manipulate the database? Thank you Mr long
@MrLongITandCAT
@MrLongITandCAT Год назад
Greetings, use you can use both. But just remember if you are using a DBGrid, only one is connected via the data source. So if you are using the adotable data source a DBGrid to show the data and you now move to SQL, you must change the data source of the dbGrid to the datasource for the adoquery
@scorphack9190
@scorphack9190 5 лет назад
thank's
@KalaiVorneKisten-vw9fz
@KalaiVorneKisten-vw9fz Месяц назад
hi sir, how would you go about deleting information if you have relational tables?
@MrLongITandCAT
@MrLongITandCAT Месяц назад
You first delete the data in the child table (the one where the data has a foreign key). And then you delete the data in the main table (that refers to the primary key).
@jerbear197
@jerbear197 2 года назад
Hi Mr Long. Back again with yet another question. I have a SQLIte database of employees which has a RecNo field set to Auto Increment. One of the fields in that DB is STATUS and it will show if the employee is ACTIVE, still with the company, or RESIGNED. I've written a procedure that runs through the entire DB and moves any employees whose STATUS = RESIGNED to a PASTEMPLOYEES Table and then DELETED them from the Main Table. The RecNo is just that. It's not an I.D. so what I want to do now is reorder the RecNo value so there are no breaks like 100, 101, 103, 105. Appreciate any help you can provide..
@MrLongITandCAT
@MrLongITandCAT 2 года назад
If it's not a primary key field you could just loop through the table and reassign the values in numerical sequence: for K := 1 to adoTable.recordcount do adotable['RecNo'] := K ;
@tushar1439
@tushar1439 4 года назад
what we mean by RemindQry.SQL.Delete(6); .i am stuck with deplhi project without having any editor.Plz help
Далее
5 SQL Tips for Grade 12 IT
9:00
Просмотров 8 тыс.
How to do an SQL SELECT in Delphi
14:37
Просмотров 50 тыс.
Они захватят этот мир🗿
00:48
Просмотров 563 тыс.
The Most Elite Chefs Ever!
00:35
Просмотров 4,5 млн
How to do an SQL UPDATE in Delphi
13:57
Просмотров 20 тыс.
Editing Databases in Delphi - Deleting a record
14:02
How to do an SQL INSERT in Delphi
14:58
Просмотров 36 тыс.
Learn SQL In 60 Minutes
56:24
Просмотров 2,1 млн
Using String grids in Delphi
13:17
Просмотров 57 тыс.
Они захватят этот мир🗿
00:48
Просмотров 563 тыс.