Re: PHP to insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"#", just as in many other languages, means COMMENT.

e.g. you can write a .sql file containing:

#
# Select all customers
#

select customer_name from customers;

then you can  feed the sql file to MySQL on the command line... and it will execute.
e.g.

unix/nt cmd line> mysql -A -u myusername -p < a.sql
password: *******

+------------------------------+
| customer_name                |
+------------------------------+
| Architecture Development |
| Larr's Cobbler Shop          |
| New Customer                 |
+------------------------------+
3 rows in set (0.00 sec)

--- In php-objects@xxxxxxxxxxxxxxx, "Atkinson, Robert" <ratkinson@...> wrote:
>
> Out of interest, what does '#' mean in a MySql statement, if it doesn't mean
> the hash character?
> 
> Rob. 
> 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux