@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12



Comments:

<0> wellll
<0> i think every backup solution should have a mysql agent
<0> and if it's myisam only (and the users know that)
<0> it's better than nothing
<1> So we talking 50/50, 90/10, 99.99/.01 for MyISAM/InnoDB
<0> umm
<0> for customers of a commercial backup solution, probably 50/50 or more in favor of innodb
<1> thanks gleam_
<1> and everybody else
<2> True.
<2> If you're serious enough about backups to buy a software package, you'll probably be running InnoDB.
<0> yeah, exactly
<1> I'll have my work cut out for me. Thanks.
<0> if you come up with an innodb plugin that works as well as innodb hot backup
<0> i think you'd make a fortune.



<1> (actually MySQL makes it pretty easy to di backups and restores)
<1> This will integrate existing tools, so it will probably use innoDB hotbackup. I take care of moving it off to tape and creating scheduled jobs, and backups records.
<3> how can i store an integer list in one row of a table
<0> oh ok, bigred
<0> btw there's a request for comments for an online backup api for mysql
<0> http://jpipes.com/index.php?/archives/75-Call-for-Comments-on-MySQL-Online-Backup-API.html
<1> gleam_: Sweeeet!
<4> one would think a guy named 'jay pipes' would be working on something other than mysql all day :)
<0> hahah
<1> boom-chucka-ckucka-waa-waa
<0> storage engine agnostic online backup makes me cream my pants
<0> so it's probably appropriate that "jay pipes" is involved.
<5> TMI
<0> <3 infi
<6> !ssc
<6> ugh
<3> how can i store an array of integers in a mysql table
<7> depends
<7> is this array the entire record ?
<7> and does it have fixed dimentions ?
<7> dimensions
<0> why would you want to?
<3> no, i want to be able to keep adding on to it
<5> sequentially, normalized into separate records like they should be.
<5> well, not sequentially, but normalized into separate records anyway.
<0> normalization for the win
<3> well i wanted it to be a coloumn
<0> why?
<3> thats how my table is set up
<0> so?
<8> hi there
<3> its a table that holds all the users, and each time they complete something, i need to tack on which thing they completed
<5> try and shoot for at least 1NF fer goodness sakes.
<8> how can I choose the order by and the direction on a sp?
<3> so i need to add another column each time?
<0> no.
<5> no, a new row.
<8> like I p*** two vars, the column to order and a string either desc ot asc
<0> you have a table that has user_task and insert a row with userid,taskid
<3> but a row is a user..
<0> and then you know they've completed it
<5> JJPeerless: Please to be readink http://en.wikipedia.org/wiki/Database_normalization
<3> oh, gleam_ thats a good solution
<3> thanks
<0> that's basic normalization, you should read infi's link and learn more about it :)
<9> always
<3> ok
<0> always, arjen?
<9> normalization? generally speaking, yes. with exceptions for loads/analysis sometimes.
<0> oh
<0> yeah
<9> and of course I spell it with an s
<0> unless you're using ndb
<0> of course you do
<9> why wouldn't I normalise with ndb?
<0> ndb's join performance suuucks
<9> oh because it doesn't join inside the data nodes.. ye well. use it for what it's good
<9> and it will, in the future. steps...
<0> yep
<0> given how few people are using ndb
<2> beebe steeep



<0> "always normalize" is right about 99.9% of the time
<5> aww. I didn't know MediaWiki was done in PHP.
<2> I would say 99.421%
<0> i'd say 99.31337
<9> infi: definitely. and MySQL.
<5> world comes crashing down.
<5> yes, I knew it was backed by MySQL, but..
<0> i use mediawiki and postgres
<0> cough
<0> wait no
<0> oracle.
<9> ah our subcontractor
<0> hehe
<2> There is no such thing as "postgres"
<5> YEAH
<5> RUINER
<0> http://db.cs.berkeley.edu/postgres.html
<5> will[werk]: YEAH TEHRE IZ, RUINER
<0> hahaha
<2> Yes, because 12 year old software should still be used.
<0> of course it should be
<5> hey, people still insist on using 3.23 ;)
<5> that's almost half that
<0> <3 wfw
<2> 3.23 isn't half as bad as postgres
<10> What's with the sudden postgres hating?
<0> not posgresql
<0> postgres
<2> inviso, POSTGRES 4.2
<2> The last ``official'' release of University POSTGRES. As of 1994, this software is no longer being developed or supported.
<10> oh, lol
<2> <0> i use mediawiki and postgres
<0> hehehe
<2> PostgreSQL is an awesome piece of software, however :)
<5> YEAH
<0> RUINER
<11> take your PostgreSQL elsewhere
<8> anyone?
<7> yeah, this is not the PostModernSQL channel, or the RegressSQL channel of anything like that :p
<5> Epilog: no idea, but that's a good question. what happens when you try it the obvious way?
<8> CREATE PROCEDURE `radius`.`sp_Nas` (IN inType VARCHAR(16), IN inOrder VARCHAR(16), IN inDir VARCHAR(4)) ...
<5> what is this hack of which you speak? that question gets asked quite a bit.
<10> Go away!! Or I shall taunt you a second time!
<8> SELECT * FROM nas WHERE routerActive=1 AND isSimul=0 ORDER BY @inOrder DESC;
<8> tried @inOrder, inOrder, 'inOrder', etc
<0> actually i might be thinking of some other brutal hack
<5> Epilog: well, the inDir part could be an integral type, which you just test for and add the ASC or DESC as appropriate, but for the orderby column, that's a bit harder.
<5> (only because I haven't tried it before.)
<0> oh i'm thinking of a way to swap two columns values in one update
<0> nevermind
<5> Epilog: from the docs, it looks like you just refer to them as is.. though they seem to always be treated as literal values.
<8> infi: so ORDER BY inOrder should work?
<5> Epilog: what happens when you just set the body of the procedure to SELECT inOrder; ?
<5> Epilog: according to the comment at: http://dev.mysql.com/doc/refman/5.0/en/declare-local-variables.html
<8> infi: I get the vars
<5> but that guy is using locally declared variables. however, I just checked a couple of my procs, and I'm just p***ing them into the query as expected.
<5> perhaps the variables can't be translated literally as part of the query string, then. though that seems silly.
<5> any one of you mysql guys lurking here, feel free to speak up at any time ;)
<8> infi: http://pastebin.com/766347
<12> compose the SQL you want to execute in a variable, prepare the variable as a prepared stmt, and then execute the stmt
<8> litheum: can I do that in a sp?
<12> that is the only way to do what you want to do in a sp
<12> see if this is any help: http://rpbouman.blogspot.com/2005/11/mysql-5-prepared-statement-syntax-and.html
<8> checking
<8> gonna try that


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #mysql
or
Go to some related logs:

gcc compiler for foo2zjs
error while getting interface flags + vmware
quotes in romanania
#math
#gentoo
diablo 2.mpq files
#linux
gentoo kterminal
#css
fluffos bug



Home  |  disclaimer  |  contact  |  submit quotes