|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
inserting records in multiple tables
well not much experienced with php/mysql..i have just started a project in which i have to maintain a members database ...the members fall in several categories and then those categories have further sub categories.. so i have got 3 tables using the table type MyIsam using version 4 mysql
1. Member 2. Category 3. Sub Category now when inseting data through forms i have to insert it directly in 3 tables...i know how to insert it single table but how can i insert it in more then 1 in a single statement? secondly help me out in deleting those records from multiple tables through a single statement in the last how can implement a full text search in php ? Thanks in Advance Farhan Nawazish webmaster@hrdn.net |
|
#2
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'Programming Theory' by CodeKadiya.
Reason: |
|
#3
|
|||||
|
|||||
|
RE: inserting records in multiple tables
Quote:
You can't. You must use three SQL statements to insert into three tables. Quote:
Again, you can't. DELETE only works on one table at a time. Quote:
This is probably easier done in MySQL. See this page. |
|
#4
|
|||
|
|||
|
RE: inserting records in multiple tables
Actually you can delete from multiple tables at one time. If you use InnoDB table w/foreign key constraints, you can also do cascading updates/deletes.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > inserting records in multiple tables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|