Re: Array data type

2010-05-16 Thread Prabhat Kumar
Hi, > How to store multiple values in a single field? Is there any array data > type > concept in mysql? > As Jörg said "Multiple values in a single field" would be an explicit violation of the relational model..." then also, if you want to use. this might be this will help you. I used like this

Re: Array data type

2010-05-16 Thread Mark Goodge
On 14/05/2010 09:54, Joerg Bruehe wrote: Hi Samrat, all! Samrat Kar wrote: Hello, How to store multiple values in a single field? Is there any array data type concept in mysql? "Multiple values in a single field" would be an explicit violation of the relational model (on which the SQL lan

Re: Array data type

2010-05-14 Thread Joerg Bruehe
Hi Samrat, all! Samrat Kar wrote: > Hello, > > > > How to store multiple values in a single field? Is there any array data type > concept in mysql? "Multiple values in a single field" would be an explicit violation of the relational model (on which the SQL language is based) and cause all ki

Re: Array data type

2010-05-14 Thread Carsten Pedersen
There are SETs and ENUMs, but I've always found that dealing with them is annoying. YMMV / Carsten On Fri, 14 May 2010 13:54:29 +0530, "Samrat Kar" wrote: > Hello, > > > > How to store multiple values in a single field? Is there any array data > type > concept in mysql? >

Re: Array as Image?

2008-04-08 Thread Rafael Barbolo Lopes
What is your column's type? Is it blob? See this, might help: http://www.phpriot.com/articles/images-in-mysql On Tue, Apr 8, 2008 at 2:18 PM, Victor Subervi <[EMAIL PROTECTED]> wrote: > Hi: > I have successfully loaded an image into my database (I believe). When I > go > to retrieve it, I get t

Re: Array property of object from Resource

2007-01-26 Thread phphelp -- kbk
On Jan 26, 2007, at 2:33 PM, Brent Baisley wrote: while ( $row = mysql_fetch_array($result,MYSQL_ASSOC) ) { $this->result_List[] = $row; } That produces an array like this: [0]=> [WHAM_ID]=>15, [NAME]=>Fred, [AMOUNT]=>99 That is getting me close to what I am looking for, I just wo

Re: Array property of object from Resource

2007-01-26 Thread phphelp -- kbk
oops, Sorry: I meant to post this to the PHP group. On Jan 26, 2007, at 2:06 PM, phphelp -- kbk wrote: Hello, folks -- lurking for a while, first post -- I'm relatively new to PHP but doing database design work for nearly 20 years. I've RTFM'ed (+ books + other resources) a bunch of times

Re: array type

2006-07-04 Thread Barry
Nolan Rumble schrieb: mm.. I'm not sure what you're trying to achieve here? Why do you want an array in there? I'm pretty sure it's not possible (correct gang?), but I'm wondering why you'd want that. What you *can* do is just store a serialized array in a textfield. What i'm trying to do is

Re: array type

2006-07-04 Thread Duncan Hill
On Tuesday 04 July 2006 16:21, Nolan Rumble wrote: > SELECT COUNT(*) FROM temp GROUP BY recipient; > > and it will list all the email addresses and how much email they > sent/received. > > I suppose I can create another table which handles the variable length > recipients but I would like to avoid

Re: array type

2006-07-04 Thread Nolan Rumble
mm.. I'm not sure what you're trying to achieve here? Why do you want an array in there? I'm pretty sure it's not possible (correct gang?), but I'm wondering why you'd want that. What you *can* do is just store a serialized array in a textfield. What i'm trying to do is dump a log file into a

RE: array vs. more table cells

2003-08-28 Thread Mark Richards
Grant, >From my old relational database days we'd create a table of courses and index this so it could be linked from your semester table. This way, you'd have a single entry for each course. Should the course change, the maintenance nightmare is alleviated by only having to change the course en

Re: array/pointer question

2003-06-09 Thread Bruce Feist
Peter Brawley wrote: Peter Brawley wrote: MySQL, like other relational databases, does not support arrays or pointers. I didn't write that. My apologies -- it was written by John Griffin, not Peter Brawley. I edited carelessly. Oops. Bruce Feist -- MySQL General Mailing Lis

Re: array/pointer question

2003-06-09 Thread Peter Brawley
>Peter Brawley wrote: >> MySQL, like other relational databases, does not support arrays or >>pointers. I didn't write that. PB

Re: array/pointer question

2003-06-09 Thread Bruce Feist
Peter Brawley wrote: MySQL, like other relational databases, does not support arrays or pointers. Of course, relational databases don't allow duplicate rows in table, either... I have yet to find a "relational" database with that feature! Bruce Feist -- MySQL General Mailing List For lis

Re: array/pointer question

2003-06-09 Thread Peter Brawley
Some intros on the web are listed at http://www.artfulsoftware.com/dbresources.html - Original Message - From: John Griffin To: Ioana ; [EMAIL PROTECTED] Sent: Monday, June 09, 2003 10:38 AM Subject: RE: array/pointer question Hi, MySQL, like other relational databases

Re: array/pointer question

2003-06-09 Thread Nils Valentin
Arrays are coming from version 5.0 as far as I know the plans. Best regards Nils Valentin 2003年 6月 9日 月曜日 23:49、Ioana さんは書きました: > Hello, I have just recently started learning mysql, and was wondering if > it supports arrays/pointers(for linked lists) of any types, and if so, > what is the synta

RE: array/pointer question

2003-06-09 Thread John Griffin
Hi, MySQL, like other relational databases, does not support arrays or pointers. Arrays and pointers do not fit within the relational model. It would take quite a bit of text to describe what the relational model is and how to use SQL to manipulate data. I suggest that you read a good text on r

Re: Array-Like Columns...

2002-06-18 Thread Galen Wright-Watson
On Tue, 18 Jun 2002, Brad W. Galiette wrote: > I am currently in the process of designing a database solution that requires > columns to have array-like capabilities. To provide the group with a better > notion of what I am trying to accomplish, please review the following > example. > As far a

Re: array

2001-09-27 Thread Jason Brooke
> Hi, > How could I retrieve data from MySQL and put it to data array? here is example > > Table Sale > Field1 --> Date > Field2 --> Sale Amount > --- > Date Sale Amount > 1/1/2001 1000 > 1/2/2001 2000 > 1/3/2001 3000 > > > $data_array=array ( > array('1/1/2001',1000), > array(

Re: array awry

2001-02-26 Thread Rolf Hopkins
This is a PHP question and should really be asked on the PHP list. But a suggestion. Tried using field names instead of number? ie. $myrow["catid"]; I'd have to read up the PHP manual to find out for sure but I'm sure you can do that just as well as I can. - Original Message - From: "