Plz help me on this
Table Structure
ID(primary key) Text
To find a text what should i write ?
select Text from table where ID=1
or
select Text from table where ID=1 limit 1
Another Table Structure
Parent Table
PID(p k) ID
Child Table
ID (p.k) PID(f.k)
what should i write to delete fast ?
delete from ChildTable where ID=1;
or
delete from ChildTable where ID=1 and pid=1; [i know the PID]