Re: longtext fields in a row

2015-04-02 Thread Trianon 33
All, Unfortunatelu this didn't do the trick. I changed (with PHPMYADMIN) all fields from LONGTEXT to TEXT, all other parameters furthermore unchanged. Ran the same procedure again, but stopped updating the row at exact the same spot. How come? No idea. What I'm trying to achiev

Re: longtext fields in a row

2015-04-01 Thread shawn l.green
triano...@gmail.com wrote: Hello, I'm fiddling wit a table where I put in a date field (datetime, also key) and some integer fields (8 of them mostly 14 long) and some longtext fields (16 of them). The longtext fields are filled with some statistics I generate complete with HTML around

longtext fields in a row

2015-04-01 Thread Trianon 33
Hello, I'm fiddling wit a table where I put in a date field (datetime, also key) and some integer fields (8 of them mostly 14 long) and some longtext fields (16 of them). The longtext fields are filled with some statistics I generate complete with HTML around, something like

Re: longtext fields in a row

2015-04-01 Thread Trianon 33
14 long) and some longtext fields (16 of them). The longtext fields are filled with some statistics I generate complete with HTML around, something like this: td12.925.965/td but than bigger, but mostly smaller than 1 Mb. This row is initially created by filling the first 10

Re: longtext fields in a row

2015-04-01 Thread Andrew Wallace
, perhaps in a different table. On Wednesday, April 1, 2015, Trianon 33 triano...@gmail.com wrote: Hello, I'm fiddling wit a table where I put in a date field (datetime, also key) and some integer fields (8 of them mostly 14 long) and some longtext fields (16 of them). The longtext fields are filled

Re: longtext fields in a row

2015-04-01 Thread Andrew Mueller
(datetime, also key) and some integer fields (8 of them mostly 14 long) and some longtext fields (16 of them). The longtext fields are filled with some statistics I generate complete with HTML around, something like this: td12.925.965/td but than bigger, but mostly smaller than 1 Mb

Re: [mysql] Text = Tinytext = MediumText = LongText?

2007-10-18 Thread Sebastian Mendel
Weston, Craig (OFT) schrieb: Hello everyone, hopefully a quick question: is there a functional difference between the various text field sizes other than size? For example if I wanted to could I run a FULLTEXT index against a LongText field? no -- Sebastian -- MySQL General Mailing List

Re: [mysql] Text = Tinytext = MediumText = LongText?

2007-10-18 Thread Sebastian Mendel
Sebastian Mendel schrieb: Weston, Craig (OFT) schrieb: Hello everyone, hopefully a quick question: is there a functional difference between the various text field sizes other than size? For example if I wanted to could I run a FULLTEXT index against a LongText field? no ay ... difference

RE: [mysql] Text = Tinytext = MediumText = LongText?

2007-10-18 Thread Weston, Craig (OFT)
AM To: mysql@lists.mysql.com Subject: Re: [mysql] Text = Tinytext = MediumText = LongText? Sebastian Mendel schrieb: Weston, Craig (OFT) schrieb: Hello everyone, hopefully a quick question: is there a functional difference between the various text field sizes other than size? For example if I

[mysql] Text = Tinytext = MediumText = LongText?

2007-10-17 Thread Weston, Craig (OFT)
Hello everyone, hopefully a quick question: is there a functional difference between the various text field sizes other than size? For example if I wanted to could I run a FULLTEXT index against a LongText field? The collary is of course how good of an idea is this, assuming that MOST

Re: Updating a LONGTEXT field

2005-11-14 Thread Whil Hentzen
I've looked at concat and other string functions as well as searched on 'update' and 'longtext', but the results haven't been useful. Am I missing something easy, or will this be more involved than a simple one-line SQL statement? You obviously didn't look at CONCAT that hard... UPDATE

Updating a LONGTEXT field

2005-11-11 Thread Whil Hentzen
Hi folks, I'm converting a database to MySQL, and rewriting the code to work with MySQL from the old datastore. One of the fields in one of the tables is a longtext type that contains a history of system accesses - each time the system is touched in one form or another, a few more lines

Re: Updating a LONGTEXT field

2005-11-11 Thread Jasper Bryant-Greene
Whil Hentzen wrote: Hi folks, I'm converting a database to MySQL, and rewriting the code to work with MySQL from the old datastore. One of the fields in one of the tables is a longtext type that contains a history of system accesses - each time the system is touched in one form or another

How to extract only the first few lines from a longtext field

2005-05-09 Thread symbulos
Dear friends, how do you extract with a query only the first few lines from a blob field? For instance: you have an article stored in the field. You would like to visualise the first few lines before reading it all. Thanks in advance. -- symbulos - ethical services for your organisation

Re: How to extract only the first few lines from a longtext field

2005-05-09 Thread Roger Baklund
symbulos wrote: how do you extract with a query only the first few lines from a blob field? For instance: you have an article stored in the field. You would like to visualise the first few lines before reading it all. You could use the LEFT() function to return for instance the 200 first

Re: How to extract only the first few lines from a longtext field

2005-05-09 Thread symbulos
On Monday 09 May 2005 15:17, Roger Baklund wrote: You could use the LEFT() function to return for instance the 200 first characters: SELECT LEFT(article,200) AS start_of_article FROM articletable WHERE ... You could also use the SUBSTRING_INDEX() function, if your lines are separated

Re: How to extract only the first few lines from a longtext field

2005-05-09 Thread Christian Meisinger
You could use the LEFT() function to return for instance the 200 first characters: SELECT LEFT(article,200) AS start_of_article FROM articletable WHERE ... You could also use the SUBSTRING_INDEX() function, if your lines are separated with \r\n: SELECT SUBSTRING_INDEX(article,'\r\n',2) AS

Re: How to extract only the first few lines from a longtext field

2005-05-09 Thread Michael Stassen
Christian Meisinger wrote: You could use the LEFT() function to return for instance the 200 first characters: SELECT LEFT(article,200) AS start_of_article FROM articletable WHERE ... You could also use the SUBSTRING_INDEX() function, if your lines are separated with \r\n: SELECT

Re: How to extract only the first few lines from a longtext field

2005-05-09 Thread symbulos
Thanks for the very useful suggestions! I was thinking of adding a simple check to search for the first full stop after the count of words. It sounded sensible in the case where people want to have a full sententences, not interrupted in the middle. -- MySQL General Mailing List For list

Re: How to extract only the first few lines from a longtext field

2005-05-09 Thread Harald Fuchs
In article [EMAIL PROTECTED], symbulos [EMAIL PROTECTED] writes: On Monday 09 May 2005 15:17, Roger Baklund wrote: You could use the LEFT() function to return for instance the 200 first characters: SELECT LEFT(article,200) AS start_of_article FROM articletable WHERE ... You could also

Re: LongText Warning

2005-04-24 Thread Richard Lynch
On Wed, April 20, 2005 3:20 pm, [EMAIL PROTECTED] said: I have a table with a field that has a field of type LONGTEXT. I try to insert a utf8 string with a length of 114544 and I get a warning that text got truncated. According to the doc, the size of LONGTEXT is much bigger than this. Any

Re: LongText Warning

2005-04-22 Thread Gleb Paharenko
Hello. There's a similar bug: http://bugs.mysql.com/bug.php?id=7654 But it was closed due to absence of feedback. You may reopen this bug. Check this field has the correct encoding. [EMAIL PROTECTED] wrote: I have a table with a field that has a field of type LONGTEXT. I try

LongText Warning

2005-04-20 Thread jalil
I have a table with a field that has a field of type LONGTEXT. I try to insert a utf8 string with a length of 114544 and I get a warning that text got truncated. According to the doc, the size of LONGTEXT is much bigger than this. Any reason I get this warning? -Jalil -- MySQL General Mailing

Re: Search in Longtext fields

2004-04-17 Thread Egor Egorov
Ronan Lucio [EMAIL PROTECTED] wrote: Is it possible to make a search for a word in a longtext column from a InnoDB database? Yes. Look at: http://dev.mysql.com/doc/mysql/en/Pattern_matching.html -- For technical support contracts, goto https://order.mysql.com/?ref=ensita

Search in Longtext fields

2004-04-16 Thread Ronan Lucio
Hi, Is it possible to make a search for a word in a longtext column from a InnoDB database? Thanks, Ronan -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

data types: TEXT, MEDIUMTEXT, LONGTEXT

2004-02-27 Thread Louis Hinman
I see the data types TEXT MEDIUMTEXT LONGTEXT listed in the MySQL documentation, and I have read Section 13.7 MySQL Full-Text Search. I infer from this that it is possible to store searchable text files in tables. My questions are these: * Is the procedure to store file

Re: data types: TEXT, MEDIUMTEXT, LONGTEXT

2004-02-27 Thread Sasha Pachev
* Is the procedure to store file paths, or the actual text itself? In order to use MySQL full-text indexing funcionality, you will need to store the actual text, and you need to have a FULLTEXT index on the column. Note that full-text indexing is supported only with MyISAM tables. *

Re: HTML in Longtext

2004-01-12 Thread robert_rowe
The double quotes have meaning in HTML. You might be confusing the parser. Try replacing your double quotes with quot. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

HTML in Longtext

2004-01-11 Thread Ian O'Rourke
I seem to be having some problems regarding HTML in Longtext fields - I think it is something to do with the fact that I have items in double quotes in the field. As an example, the html will have double quates along the lines of: p class=articletxt When I pull the field out of the database via

Longtext Fields

2004-01-11 Thread Ian O'Rourke
Is there something about longtext fields I'm missing? When I return my longtext field (the Content column of a table containing articles - it contains HTML) and place it in a TextArea on the HTML form it always has the first so many characters missing. If I continually edit the article repeatedly

Re: LONGTEXT size problem?

2003-06-24 Thread Victoria Reznichenko
net_buffer_length to 8M in my my.cnf file. Seems like no matter what I set these two values to, nothing helps. My Column is set to LONGTEXT, but I cannot seem to find anywhere that would set the size of the Longtext, and, according to the MySQL documentation -- it seems as if the size

LONGTEXT size problem?

2003-06-23 Thread Sam Evans
my.cnf file. Seems like no matter what I set these two values to, nothing helps. My Column is set to LONGTEXT, but I cannot seem to find anywhere that would set the size of the Longtext, and, according to the MySQL documentation -- it seems as if the size of this column is dependant upon your max

DATE - longtext

2003-06-12 Thread Wong Zach-CHZ013
Hi I have a database whose table has a column, which has a datatype longtext. I then try a query mysql select MY_DATE from my_table where MLC_DATE between '09/22/2003' AND '10/21/2 003'; I thought it would fail since the datatype isnt DATE nor TIMESTAMP. But from the result, it seems to work. 1

Re: DATE - longtext

2003-06-12 Thread Paul DuBois
At 14:44 -0500 6/12/03, Wong Zach-CHZ013 wrote: Hi I have a database whose table has a column, which has a datatype longtext. I then try a query mysql select MY_DATE from my_table where MLC_DATE between '09/22/2003' AND '10/21/2 003'; I thought it would fail since the datatype isnt DATE nor

appending to longtext field

2003-03-19 Thread Mr Orange
Hello all, I have a database with a type longtext called notes. Say I wanted to append some text to this field, what command would I use? I have tried the following sql.. update clients set notes=notes+text to append where id=1; But this doesn't seem to do the job. I am new to MySQL so

Re: appending to longtext field

2003-03-19 Thread GV
I think is better to have an additional record each time a user inserts new information Mr Orange wrote: Hello all, I have a database with a type longtext called notes. Say I wanted to append some text to this field, what command would I use? I have tried the following sql.. update clients

Re: appending to longtext field

2003-03-19 Thread Mr Orange
GV wrote: I think is better to have an additional record each time a user inserts new information Mr Orange wrote: Hello all, I have a database with a type longtext called notes. Say I wanted to append some text to this field, what command would I use? I have tried the following sql

Re: appending to longtext field

2003-03-19 Thread Jeff Shapiro
At 1:50 + 3/20/03, Mr Orange wrote: GV wrote: I think is better to have an additional record each time a user inserts new information Mr Orange wrote: Hello all, I have a database with a type longtext called notes. Say I wanted to append some text to this field, what command would I

LONGTEXT - All string column types are VAR? - MySQL

2003-03-04 Thread jason wesley upton
I know that for most purposes you can treat TEXT and BLOB as VARCHAR under a longer name, but is the same true of LONGTEXT? I have a field that needs to be open to a huge amount of text, but I don't want my database's size to be huge if that maximum allowed amount of text is not used. Thanks

Re: LONGTEXT - All string column types are VAR? - MySQL

2003-03-04 Thread Paul DuBois
At 12:29 -0600 3/4/03, jason wesley upton wrote: I know that for most purposes you can treat TEXT and BLOB as VARCHAR under a longer name, but is the same true of LONGTEXT? I have a field that needs to be open to a huge amount of text, but I don't want my database's size to be huge

Re: Help - Convert Date from longtext to MySQL date format

2003-01-30 Thread Roger Baklund
* Roger Baklund [...] UPDATE a SET new_date = ( MID(my_date,7,4),'-', MID(my_date,1,2),'-', MID(my_date,4,2)); huh? How did this happen...? I just checked my outbox, and the message I wrote yesterday[1] contained new_date = CONCAT(. It seems as the substring CON has been replaced

Re: Help - Convert Date from longtext to MySQL date format

2003-01-29 Thread Roger Baklund
* Wong Zach-CHZ013 [...] In table a, the columns are my_date - longtext num - int(11) [...] Q: How do I convert 08/06/2002 to 2002-08-06 format LONGTEXT is not a good column type for dates, you should use the special 'date' type, see URL: http://www.mysql.com/doc/en/Column_types.html

Re: Help - Convert Date from longtext to MySQL date format

2003-01-29 Thread rich allen
a b c In table a, the columns are my_date - longtext num - int(11) eg: mysql select * from a; +--+--+--+ | my_date | x| +--+--+ | 08/06/2002 |1 | | 08/07/2002 |2 | +--+--+--+ 2 rows in set (0.00 sec) Tables b and c have

Help - Convert Date from longtext to MySQL date format

2003-01-28 Thread Wong Zach-CHZ013
Hi I have a few tables in a database Z, namely table a b c In table a, the columns are my_date - longtext num - int(11) eg: mysql select * from a; +--+--+--+ | my_date | x| +--+--+ | 08/06/2002 |1 | | 08/07/2002 |2

Re: Re: max_allowed_packet (was: Re: 4.0.x bug with LONGTEXT?)

2002-08-21 Thread Victoria Reznichenko
Roger, Tuesday, August 20, 2002, 5:34:25 PM, you wrote: RB Maybe... :) RB On the other hand: RB 1) The documentation on max_allowed_packet talks only about transferring RB data, not storing. (This should be easy to fix.) Agreed.. RB 2) The mere existence of LONGBLOB and LONGTEXT suggests

Re: max_allowed_packet (was: Re: 4.0.x bug with LONGTEXT?)

2002-08-21 Thread Roger Baklund
* Victoria Reznichenko RB 3) How can the server know that the max_allowed_packet for RB _this_ connection RB (the UPDATE'ing connection) isn't smaller than the RB max_allowed_packet value RB for a future SELECT connection? (I could do the UPDATE ... RB CONCAT(... with RB

max_allowed_packet (was: Re: 4.0.x bug with LONGTEXT?)

2002-08-20 Thread Roger Baklund
* Harald Fuchs In article [EMAIL PROTECTED], Victoria Reznichenko [EMAIL PROTECTED] writes: As you can see txt1 and txt2 contain text file ~ 8M UPDATE tbl1 SET total=CONCAT(txt1,txt2) WHERE id=1; SELECT id, LENGTH(txt1), LENGTH(txt2), LENGTH(total) FROM tbl1;

RE: max_allowed_packet (was: Re: 4.0.x bug with LONGTEXT?)

2002-08-20 Thread Luc Foisy
-Original Message- From: Roger Baklund [mailto:[EMAIL PROTECTED]] * Harald Fuchs In article [EMAIL PROTECTED], Victoria Reznichenko [EMAIL PROTECTED] writes: As you can see txt1 and txt2 contain text file ~ 8M UPDATE tbl1 SET total=CONCAT(txt1,txt2) WHERE id=1;

Re: max_allowed_packet (was: Re: 4.0.x bug with LONGTEXT?)

2002-08-20 Thread Roger Baklund
it be smart to limit itself to something it knows it can't transfer later? Maybe... :) On the other hand: 1) The documentation on max_allowed_packet talks only about transferring data, not storing. (This should be easy to fix.) 2) The mere existence of LONGBLOB and LONGTEXT suggests that fields

Re: Re: 4.0.x bug with LONGTEXT?

2002-08-19 Thread Victoria Reznichenko
play any role in this query. You got NULL not because of LOAD_FILE(). Look: CREATE TABLE `tbl1` ( `id` tinyint(3) unsigned NOT NULL auto_increment, `txt1` longtext NOT NULL, `txt2` longtext NOT NULL, `total` longtext NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM INSERT INTO tbl1(txt1, txt2

Re: 4.0.x bug with LONGTEXT?

2002-08-16 Thread Victoria Reznichenko
Harald, Thursday, August 15, 2002, 4:02:44 PM, you wrote: HF I think I've found a bug in the handling of large INSERTs/UPDATEs HF (MySQL 4.0.2, Intel/Linux). HF Consider the following: HF CREATE TABLE IF NOT EXISTS tbl1 ( HF id INT UNSIGNED NOT NULL AUTO_INCREMENT, HF txt LONGTEXT

MySQL dies after longtext field created

2002-07-24 Thread Yuri
My MySQL server 3.23.51 died in an hour after I created a table containing longtext field. I am not sure that this was the reason but suspect so since it was running for few weeks w/out problems. It stopped accepting answering TCP UNIX socket connections, although was still listening on TCP

Re: BLOB and LONGTEXT question

2001-07-25 Thread Paul DuBois
At 10:11 PM -0500 7/25/01, Mike wrote: I have throughly looked at the documentation and I am beginning to get frustrated. It says that a LONGTEXT field's max length is L+4 bytes, where L 2^32. I understand the extra 4 bytes(+4) which is to keep track of the size sense LONGTEXT is no more than

Re: BLOB and LONGTEXT question

2001-07-25 Thread Mohamad Ilhami
On Wed, 25 Jul 2001, Paul DuBois wrote: I doubt if they are trying to irritate you. The maximum size of a MySQL database depends on your file system constraints, not on the size of a LONGTEXT. Some OSes have a max file size of 2GB, for example; others don't. Linux ext2 filesystem only

Re: longtext

2001-06-13 Thread Ansgar Becker
Hi, my question is: is it possible to load in a Longtext column a .txt file? furthermore, is it possible to do that with a .xml file? of course.. at first you must use seperator, field-encloser and line-terminator, which is not contained in your data. for example this way: SELECT * FROM

Help! (LONGTEXT)

2001-05-22 Thread Olexandr Vynnychenko
Hello mysql, Can anybody tell me what should I do? I use LONGTEXT column in my table to store data files (html, for example). But I see that I cannot simply INSERT INTO table SET longtext_column=whole_file. But I must do it today. But how??? Thanks beforehand. -- Best regards, Olexandr

Re: Help! (LONGTEXT)

2001-05-22 Thread Paul DuBois
At 3:22 AM +0300 5/23/01, Olexandr Vynnychenko wrote: Hello mysql, Can anybody tell me what should I do? I use LONGTEXT column in my table to store data files (html, for example). But I see that I cannot simply INSERT INTO table SET longtext_column=whole_file. But I must do it today. But how

Re[2]: Help! (LONGTEXT)

2001-05-22 Thread Olexandr Vynnychenko
Hello Paul, Wednesday, May 23, 2001, 3:24:29 AM, you wrote: PD At 3:22 AM +0300 5/23/01, Olexandr Vynnychenko wrote: Hello mysql, Can anybody tell me what should I do? I use LONGTEXT column in my table to store data files (html, for example). But I see that I cannot simply INSERT INTO table

Re[2]: Help! (LONGTEXT)

2001-05-22 Thread Paul DuBois
At 3:35 AM +0300 5/23/01, Olexandr Vynnychenko wrote: Hello Paul, Wednesday, May 23, 2001, 3:24:29 AM, you wrote: PD At 3:22 AM +0300 5/23/01, Olexandr Vynnychenko wrote: Hello mysql, Can anybody tell me what should I do? I use LONGTEXT column in my table to store data files (html, for example

Searching keywords in a LONGTEXT field

2001-04-26 Thread Corrado . Topi
Good Morning People, we're just facing a challenging problem ... we have a MySQL lessons learned database. In two fields of the main table (LONGTEXT) we have the description and the solution. You could think of two short abstracts, regarding the lesson (some 100 words or more). We need

How to loada 28MB LONGTEXT data?

2001-04-12 Thread Wei Zhu
Hi everyone; I have some problem in load a 28 MB LONGTEXT data into mysql database using "LOAD DATA INFILE ...". At the beginning, server returns me the error message as below: ERROR 1030: Got error 139 from table handler I tried the same command again, then I got another error mess

Re: How to loada 28MB LONGTEXT data?

2001-04-12 Thread ryc
). The duplicate entry error can probably be fixed by running myisamchk on the table. Hope this helps. ryan I have some problem in load a 28 MB LONGTEXT data into mysql database using "LOAD DATA INFILE ...". At the beginning, server returns me the error message as below: ERROR 1030: Got