CRUD
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
CRUD janë katër veprimet bazë me të dhëna: Create (krijo), Read (lexo), Update (ndrysho) dhe Delete (fshi). Pothuajse çdo aplikacion — nga rrjetet sociale te ditari elektronik — bën kryesisht këto katër gjëra.
EnglishEN
CRUD stands for the four basic actions on data: Create, Read, Update and Delete. Almost every app — from social networks to an online gradebook — mostly does these four things.
Si ta mendosh
Si mësuesi me ditarin: shton një nxënës të ri (Create), shikon notat (Read), korrigjon një notë (Update), heq një nxënës që ndërroi shkollë (Delete).
Lexoje në anglisht
Like a teacher with the class register: adds a new student (Create), checks grades (Read), corrects a grade (Update), removes a student who changed schools (Delete).
Shembull kodipython
db.execute("INSERT INTO nxenesit (emri) VALUES ('Arta')") # Create
db.execute("SELECT * FROM nxenesit") # Read
db.execute("UPDATE nxenesit SET emri = 'Ardita' WHERE id = 1") # Update
db.execute("DELETE FROM nxenesit WHERE id = 1") # Delete