Encryption

2006-09-29 Thread Cummings, Shawn (GNAPs)


Is there a simple way to encrypted data as it's being stored in a 
table?  And then easily decrypted when it's queried?


Sample syntaxs if available - thanks in advance.




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



UPDATE question

2006-05-03 Thread Cummings, Shawn (GNAPs)


If I have 4 Fields (FIELD1, FIELD2, FIELD3  FIELD4)

I can do this easily;

UPDATE TABLE_NAME SET FIELD4 = FIELD1;

But -- how do I do it so that FIELD4 = FIELD1  FIELD2 ???  I can't seem 
to find any examples online.  Maybe it's just too early in the morning - 
I'm drawing a blank! ;)







--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



EXPORTING results to CSV

2006-05-03 Thread Cummings, Shawn (GNAPs)


Is there a way to export the results to a text file (comma-delimited 
preferred)...


ie, SELECT * FROM TABLE  test.txt ; (obviously this doesn't work)  :)




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Estimated Drive Space Requirements

2006-01-25 Thread Cummings, Shawn (GNAPs)



If I have about 2Gb of raw text data to import everyday -- can I expect 
that to take up about 2Gb in a mySQL database ... slightly more.. double?


Pretend there's no indexes for now.




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



sqlloader question

2005-10-31 Thread Cummings, Shawn (GNAPs)


I've been given some Oracle table dumps that are NOT plain text 
delimited.  I've been asked to look at using sqlloader to get the file 
into my mysql database.


Does this exist for mysql? 



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Oracle DMP to mySQL -- Possible???

2005-10-25 Thread Cummings, Shawn (GNAPs)


I have some data that has been dumped from Oracle into what appears to 
be a proprietary text file... It is not delimited into a format that I 
can just import into mysql (easily).  The IT guy has provided me an 
outline of the dump..


ie;

SQL describe isup051024;
Name  Null?Type
-  


CCS_UNITIDNOT NULL CHAR(7)
DIS_POSI_TION NOT NULL CHAR(3)
OPCCHAR(11)
CIRCUIT_ID_CODENUMBER

etc.. etc.. etc..

Does mysql have a way to import these Oracle dumps easily??




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: No Longer Receiving Emails

2005-05-27 Thread Cummings, Shawn (GNAPs)


It's possible that Gabe's mail spool is full, and he is not receiving 
mail - including our responses.


Gabriel - if you are receiving any messages directly sent to you - 
please respond to the list to rule that out.


If no responses are made to any of either directly or through the list, 
then he isn't receiving mail at all for some reason, if not a full spool.




Jay Blanchard wrote:


I saw this on this list, so it is getting there just fine.

 





--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



ORDERing/GROUPing or both??

2005-04-29 Thread Cummings, Shawn (GNAPs)

If I have a table with fields
ID, NAME, VALUE
and they may be populated like
1, SHAWN, APPLE
2, TOM, BANANA
3, SHAWN, BANANA
4, JACK, GRAPES
5, TOM, APPLE
6, SHAWN, GRAPES
and I want to query all records showing only the most recent records for 
each person


Any thoughts?
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


SELECT and DELETE

2004-01-29 Thread Cummings, Shawn (GNAPs)


I'd like to kill 2 birds with one stone...

I'd like to SELECT a set of records (for viewing) and in the same motion 
DELETE any that show up.

Can it be done?

Shawn Cummings
Engineering Project Manager
Global NAPs
10 Merrymount Rd
Quincy, MA 02169
Desk 617-507-5150
VoIP 617-507-3550
[EMAIL PROTECTED]




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


grouping

2003-11-10 Thread Cummings, Shawn (GNAPs)


select max(comments.commentid) as tagger, comments.commentref, 
article.articlesubject, article.articlename, comments.commentfrom from 
comments LEFT JOIN article ON comments.commentref=article.articleid GROUP 
BY commentref ORDER by tagger DESC;

I have this query above.

I lists comments in order from the most active to the least active from 
articles.

The comments returns might be

54 34
53 89
52 32
My problem is, I need another field from that comments table that is 
returned with the max.  There poster's name is commentfrom, and the query 
is returning the FIRST poster for all the comments related to that specific 
article, not the last poster.

Any ideas?



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


LIMITS

2003-10-16 Thread Cummings, Shawn (GNAPs)


when I do a query is there a way to IGNORE the first X number of returned 
records???

For instance I want to see 15 records after the first 50.



Shawn Cummings
Engineering Project Manager
Global NAPs
10 Merrymount Rd
Quincy, MA 02169
Desk 617-507-5150
VoIP 617-507-3550
[EMAIL PROTECTED]




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


sorting/grouping

2003-10-06 Thread Cummings, Shawn (GNAPs)


I have a very simple table.

commentid, commentref  (each field is an INT)

Each record is a comment... commentid is the ID (each new record is a 
higher #).. and the commentref field if the story the comment refers to.

I want to be able to list the stories in order from most recent comment 
onward.

I've tried

select commentid, commentref from comments GROUP BY commentref ORDER by 
commentid DESC;

However, the results are NOT showing me the stories in order from most 
active comments onward...  Maybe too much soda and sugar - but any thoughts?



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: sorting/grouping

2003-10-06 Thread Cummings, Shawn (GNAPs)
This doesn't seem to be making sure that the newest commentid is the 
result...  Seems to be random.

At 09:11 AM 10/6/2003 -0400, you wrote:
try

 select commentid, commentref
from comments
 ORDER by
 commentref ,commentid DESC;
 -Original Message-
 From: Cummings, Shawn (GNAPs) [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 02, 2003 2:37 PM
 To: [EMAIL PROTECTED]
 Subject: sorting/grouping




 I have a very simple table.

 commentid, commentref  (each field is an INT)

 Each record is a comment... commentid is the ID (each new record is a
 higher #).. and the commentref field if the story the
 comment refers to.

 I want to be able to list the stories in order from most
 recent comment
 onward.

 I've tried

 select commentid, commentref from comments GROUP BY
 commentref ORDER by
 commentid DESC;

 However, the results are NOT showing me the stories in order
 from most
 active comments onward...  Maybe too much soda and sugar -
 but any thoughts?




 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Shawn Cummings
Engineering Project Manager
Global NAPs
10 Merrymount Rd
Quincy, MA 02169
Desk 617-507-5150
VoIP 617-507-3550
[EMAIL PROTECTED]




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: sorting/grouping

2003-10-06 Thread Cummings, Shawn (GNAPs)


For instance;

mysql select commentid, commentref from comments GROUP BY commentref ORDER 
by commentref DESC, commentid;
+---++
| commentid | commentref |
+---++
|80 |188 |
|73 |187 |
|76 |185 |
|56 |181 |
|59 |180 |
|60 |179 |
|50 |169 |
...

You can see for record 181 that 56 is the highest number after 181 is 
grouped.  However this is not true;

mysql select commentid, commentref from comments WHERE commentref=181;
+---++
| commentid | commentref |
+---++
|56 |181 |
|57 |181 |
|79 |181 |
+---++
You can see above that id(79)

At 09:11 AM 10/6/2003 -0400, Dan Greene wrote:
try

 select commentid, commentref
from comments
 ORDER by
 commentref ,commentid DESC;
 -Original Message-
 From: Cummings, Shawn (GNAPs) [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 02, 2003 2:37 PM
 To: [EMAIL PROTECTED]
 Subject: sorting/grouping




 I have a very simple table.

 commentid, commentref  (each field is an INT)

 Each record is a comment... commentid is the ID (each new record is a
 higher #).. and the commentref field if the story the
 comment refers to.

 I want to be able to list the stories in order from most
 recent comment
 onward.

 I've tried

 select commentid, commentref from comments GROUP BY
 commentref ORDER by
 commentid DESC;

 However, the results are NOT showing me the stories in order
 from most
 active comments onward...  Maybe too much soda and sugar -
 but any thoughts?




 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Shawn Cummings
Engineering Project Manager
Global NAPs
10 Merrymount Rd
Quincy, MA 02169
Desk 617-507-5150
VoIP 617-507-3550
[EMAIL PROTECTED]




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Performance/Efficiency

2002-08-12 Thread Cummings, Shawn (GNAPs)


If I have 4,000,000 records, and I just want to make sure that the last 100 
records do not contain a certain value,  ... how can I efficiently 'count' 
the number of times in the LAST 100 records that a specific condition exists?

As an example,

mysql select COUNT(*) from Log WHERE LogIP=10.0.0.22 ORDER BY LogID 
LIMIT 100;

The above syntax actually COUNTs all the occurances, not just the COUNT 
from the last 10 records...

My goal is to check for specific conditions on ONLY the last couple 
records, so that the entire table does not have to be reviewed.

Any thoughts, ideas or comments?







-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Using RAND()

2002-05-07 Thread Cummings, Shawn (GNAPs)



The RAND() syntax does not appear to be working for me.

What version mySQL is required?


At 04:43 PM 1/29/2002 +0200, Michael Widenius wrote:

Hi!

  Ulf == Ulf Harnhammar [EMAIL PROTECTED] writes:

Ulf On Sun, 27 Jan 2002, Michael Widenius wrote:
  One way to do this is to do as follows:
  SELECT something FROM sometable WHERE somevar=somevalue ORDER BY
  RAND() LIMIT 10


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php