abstract:
and to reset the auto incrementing it is
Code:
ALTER TABLE AUTO_INCREMENT=1
I have 10 tables that will have to be reset and started over and just want to do it all at once.
I would appreciate any help that can be given to me in order to make this work.
Originally Posted by r937
you're catching on 
now what i'd like you to do next is compare your query --
UPDATE territories Allies_Win =1000
with the allowed syntax for the UPDATE statement --
UPDATE [LOW_PRIORITY] [IGNORE]
tbl_name
SET
col_name1
=
expr1
[,
col_name2
=
expr2
...]
[WHERE
where_definition
]
[ORDER BY ...]
[LIMIT
row_count
]
if we remove the optional keywords and clauses that you aren't using, the allowed syntax is --
UPDATE
tbl_name
SET
col_name1
=
expr1
notice any difference between this and your query?
Aye, the set command, will making this change fix the "in" parse error I am getting above though?
Edit: Also do I have to take the ' out, or add one to the end of the statment?
Code:- $sql = 'UPDATE territories SET Allies_Win=1000';
Copy Code I am not sure where to close that at. |