Joel wrote:[color=blue]
> "Delete * From Artrprt"
> I get an Sql Syntax error. What should I do?[/color]
There's no * syntax for the DELETE statement; there is no need for it,
since you can't delete individual columns, you can only delete whole
rows. You probably want "Delete From Artrprt".
Tip: when deleting the entire contents of a table, if there are a lot of
data in the table, you might find it is quicker to use "DROP TABLE
Artrprt" and then recreate it with your original "CREATE TABLE". Either
way will work.
"Bill Karwin" <bill@karwin.co m> wrote in message
news:csh5g501oc t@enews3.newsgu y.com...[color=blue]
> Joel wrote:[color=green]
> > "Delete * From Artrprt"
> > I get an Sql Syntax error. What should I do?[/color]
>
> There's no * syntax for the DELETE statement; there is no need for it,
> since you can't delete individual columns, you can only delete whole
> rows. You probably want "Delete From Artrprt".
>
> Review the documentation for DELETE for more information:
> http://dev.mysql.com/doc/mysql/en/DELETE.html
>
> Tip: when deleting the entire contents of a table, if there are a lot of
> data in the table, you might find it is quicker to use "DROP TABLE
> Artrprt" and then recreate it with your original "CREATE TABLE". Either
> way will work.
>
> Regards,
> Bill K.[/color]
Comment