RE: A space is contained in colum??

2001-10-31 Thread Jay Fesco
> When I create a table, one colum contains a space, how can I caeate it > correctly? > > like: > > CREATE TABLE mytable( > name CHAR(60) NOT NULL, > Email VARCHAR(50) NOT NULL, > Thrid colum CHAR(60), ///Here there is a > space? > PRIMARY KEY (Email)

RE: MySQL Authors Needed

2001-10-31 Thread Jay Fesco
New Riders), is the bible as far as I'm concerned, and I think alot of people here would agree. Jay Fesco Magical Mystery Words: database,sql,query,table - Before posting, please check: http://www.mysql.com/manual.

RE: general sql question

2001-10-18 Thread Jay Fesco
er to this... (besides 'upgrade' - I'm running 3.22 on one of my servers and don't intend to upgrade anytime soon because of complications with ChiliSoft...) Jay Fesco Magical Mystery Words: database,sql,query,table

RE: general sql question

2001-10-18 Thread Jay Fesco
> > select count(distinct(email)) from subscribes; > > > > But that's not legal. Any thoughts/ideas you all could send in would be > > great. TIA! > > > > Chris Blessing > > [EMAIL PROTECTED] > > http://www.330i.net > > Try: select

RE: How to Dump only Data

2001-10-02 Thread Jay Fesco
>From page 620 in MySQL... * -t or --no-create-info Does not write CREATE TABLE statements Since DROPs are off by default, this should give you just the insert statements. The other option (as already suggested) is SELECT INTO OUTFILE. Jay Fesco > -Original Message- >

RE: need for strength

2001-09-25 Thread Jay Fesco
lt I'd be better off recreating the database from scratch. The sheer volume of data (and the extremely denormalized structure of the original db) kept me from doing just that. There is no clear-cut yes or no here. You will have to look closely at the code and the original database. Yes, it

RE: Update problem

2001-09-24 Thread Jay Fesco
ws the answer to, assumes the > asker is an idiot? Never did I assume that you were an idiot. What I assumed (and still do) is that you are overcomplicating the question. > 2. Does your condescending attitude win you as many points with your users > a

RE: Update problem

2001-09-24 Thread Jay Fesco
DELETE. I have to deal with the same situation Phil describes quite often, but I've never missed the 'join in update' function. Not that it wouldn't be nice, but the workaround is not rocket surgery. Jay Fesco ---

RE: Semi colons in text fields in update statement

2001-09-20 Thread Jay Fesco
k well. A RegExp replace on the fly just before the update is how I usually handle it in ASP. Jay Fesco "Confusing issues since 1963" Magical Mystery Words: database,sql,query,table - Before posting, please check:

RE: I'm sure this should be simple but I can't get it

2001-09-20 Thread Jay Fesco
ase I misunderstood the intent: If 'Column A in Table 1' has space-delimited words in each record such as: abc def ghi I believe you could use a combination of CONCAT and REPLACE. The WHERE clause would look something like: WHERE Table2.ColumnA IN (CONCAT('"',REPLACE(Table1.C

RE: I'm sure this should be simple but I can't get it

2001-09-20 Thread Jay Fesco
le 1 may contain a list of words that need to be matched > not just one > single entry. > > If someone could point me in the right direction for some code or > a solution > I would be very appreciative. > select Table2.ColumnB from Table1, Table2 WHERE Table1.ColumnA = Table2.Co

RE: Help!

2001-09-18 Thread Jay Fesco
ments from customers, mariacust where custmers.tele = mariacust.tele GROUP BY customers.company; Or something like that... Jay Fesco Magical Mystery Words: database,sql,query,table - Before posting, please check: http://www.

RE: copying information

2001-09-17 Thread Jay Fesco
mp is what you need, and is quite well documented (many examples exist in the list archives as well.) Good luck! Jay Fesco - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.c

RE: reset auto_increment?

2001-09-17 Thread Jay Fesco
> Can someone tell me how to reset a column's auto_increment starting point > back to 0 in mysql ? > > Thanks > > Paul > According to Paul DuBois on page 169 of MySQL by New Riders (which you should buy): ALTER TABLE t DROP i, ADD i INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY Ja

RE: errors 2006 and 2000

2001-09-13 Thread Jay Fesco
ame; before trying to create a table. Jay Fesco Magical Mystery Words: database,sql,query,table - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list

RE: Size of DB

2001-09-13 Thread Jay Fesco
ASP but the solution is the approximately the same for IIS ASP: Syntax for a function to return filesize (in JScript/ASP) is: function ShowFileSize(filespec) { var fs, f, s; fs = new ActiveXObject("Scripting.FileSystemObject"); f = fs.GetFile(filespec); s = f.Name + " uses " +

RE: mysqldump question (very basic)

2001-09-11 Thread Jay Fesco
my case, but I have a fixed IP): c:/mysql/bin/mysqldump -h www.mydomain.com -u UserID -pPassword --add-drop-table MyDBName > c:/ServerDumps/MyDBName.sql I run a batch job with one of these for every database every day. Hope that gets you started! Jay Fesco -

RE: COUNTNULL function

2001-08-30 Thread Jay Fesco
Calvin, Maybe I'm just confused (fairly likely), but it appears that you are confusing 'null' with zero. If you actually want to count all values including nulls, COUNT(*) will do it. If you want to count NON nulls, COUNT(a_field_name) does it. SUM(a_field_name) returns the sum of all non-null

RE: Licensing terms for an Intranet site (way beyond OT)

2001-08-30 Thread Jay Fesco
> i think this is jeremy's not-so-subtle way of bashing your choice of email > client. > check this link: > http://www.rodos.net/outlook/#messageflag > > -ravi. > Yeah, yeah - I got it. Only problem is that I DON'T have a choice (company policy et al)...

RE: Licensing terms for an Intranet site

2001-08-30 Thread Jay Fesco
> > -- > > Jeremy D. Zawodny, <[EMAIL PROTECTED]> > > Technical Yahoo - Yahoo Finance > > Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936 > > > Is anyone else getting a strange flag associated with Jeremy's email, or is it just me? Every one of his posts comes in flagged

RE: selecting what is not in something

2001-08-27 Thread Jay Fesco
x27;NOT IN' clause, quoted as appropriate. It works reasonably well, but I haven't benchmarked the speed issues with large results from the inner query. Hope that helps. If MySQL asks me, my TOP priority is INNER SELECTs. But that's probably just me... Jay Fesco -Origina

RE: Import from Access to MySql

2001-08-21 Thread Jay Fesco
Anyone can tell me how can i import an access db to mysql. Go to http://www.mysql.com/downloads/contrib.html. Many contributed tools plus a couple of macros that are run from within Access. Jay Fesco - Before posting

RE: aggressive dolphin?

2001-08-16 Thread Jay Fesco
fishbowls and you didn't? I think Douglas Adams had it right on the mark... (If you don't get the reference, you will need to read the inappropriately named Hitchhikers Guide to the Galaxy trilogy) \:^) (We need a 'Sorry for the emoticon' emoticon) Jay F

RE: Downsides of MySQL?

2001-08-16 Thread Jay Fesco
Give me a break. Every time I think perhaps The Dilbert Principal is fading, the Pointy-Haired-One rears his pointy head... Thanks for the laugh, Chris! Good luck! Jay Fesco - Before posting, please check: http://www.mysq

RE: WANTED: Utility to reverse engineer existing database

2001-08-07 Thread Jay Fesco
Or you can just use the whereclause option in MySQLDump. (i.e. -w'RecordID<200') http://www.mysql.com/doc/m/y/mysqldump.html Jay -Original Message- From: Stefan Hinz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 11:47 AM To: Kevin; [EMAIL PROTECTED] Subject: Re: WANTED: Util

RE: WANTED: Utility to reverse engineer existing database II

2001-08-07 Thread Jay Fesco
se option in mysqldump. Syntax is: -w 'where_clause' -or- --where='where_clause'. Of course, 'where_clause' would be something like 'id<200' or whatever's appropriate. It's on page 620 of 'MySQL' by Paul DuBois (New Riders). Invaluabl

RE: client/server

2001-07-31 Thread Jay Fesco
Hello! I'm a newbie at mysql and i'm looking for a client program for win23 that can accsess a mysql database and create and alter tables. The mysql database is placed on a linux box in my lan, and im not too keen of sitting in console. The linux box also holds the apache server,with php but i e

RE: MySql Server creating problem

2001-07-26 Thread Jay Fesco
any places it lives, then verify that the one giving the error (/var/lib/mysql/mysql.sock) is linked to the 'real' one. This may NOT be your issue, but it happened on our box after a reload of MySQL. Good luck! Jay Fesco ---