Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  a particular record is only editable not deletable

phpMyEdit Configuration     a particular record is only editable not deletable
Odoslať novú tému   Odpovedať na tému    
 
sandeep     Založený: 01.07.2003   Príspevky: 6  
Príspevok Zaslal: 2003-07-03 07:28
Návrat hore  Odpovedať s citátom     

I have a database where in I have added one record as default record.

Is it possible, that users can onlt edit this record and NOT be able to delete this partcualr record.

Sounds very particular, but just thaught if someone else also has stumbled on similar requirement.

Thx in advance.
Sandeep

 
nepto     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2003-07-03 11:36
Návrat hore  Odpovedať s citátom     

Well, this is very particular, but it can be done. Create before delete trigger. Check ID. If ID represents non-deletable record, return FALSE from such trigger. No delete action will be taken than.

Let me know if this works for you.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2015-01-12 22:03
Návrat hore  Odpovedať s citátom     

see
http://hockinson.us/txt/num_recs.txt

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov