Re: data pointer in mysql
Posted by:
Omega dark
Date: September 01, 2004 03:12AM
i don't know exactly what you mean, but if you're using php aswell, you could make this type of data pointer constructions:
$qry = mysql_query("select customer_name as name from customers");
$data = mysql_fetch_object($qry);
print $data->name;
or when you have the query "select * from customers" then you could access every colomn name in this way.
print $data->customer_name;
print $data->orderId;
print $data->product_name;
etc.
Subject
Written By
Posted
Re: data pointer in mysql
September 01, 2004 03:12AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.