Enhanced LINQ to SQL Compatible ORM Solution from Devart

2010-06-14 Thread Julia Samarska
Devart Email: i...@devart.com Web: http://www.devart.com FOR IMMEDIATE RELEASE CONTACT INFORMATION: Julia Samarska jul...@devart.com 11-Jun-2010 Enhanced LINQ to SQL Compatible ORM Solution from Devart Devart has recently announced the release of LinqConnect - an enhanced LINQ to SQL

int(10) va int(11)

2010-06-14 Thread Ryan Chan
Assume MySQL int range (unsigned) is from 0 to 4294967295 There are total 10 digits. Why a lot of tutorial in the web tell you to declare, e.g. CREATE TABLE t1 (f INT(11) UNSIGNED); -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: int(10) va int(11)

2010-06-14 Thread Michael Dykman
11 characters of display allow for any int of any size, signed or unsigned. When you do not specify a length attribute in a declaration, MySQL uses 11 as the default. For your application, use what makes sense for your problem's domain. - michael dykman On Mon, Jun 14, 2010 at 12:14 PM, Ryan

RE: int(10) va int(11)

2010-06-14 Thread Daevid Vincent
AFAIK, the number in parenthesis is ONLY for display purposes in formatting the size of the column in mySQL command line output, NOT the size of the data that can be held. I think they use (11) because unsigned will need one extra character for the minus sign. INT SIGNED = -2147483648 to

list rows with no recent updates

2010-06-14 Thread MadTh
Hi, I ran a update command on around 2700 rows inside a mysql database table which has around 3000 table rows to change the ( say) price of each item ( with unique ID. unique product code). like: mysql UPDATE tbl_xyz set listprice='9.45' where prod_id='3069' and prod_code='a0071'; Query OK,

RE: list rows with no recent updates

2010-06-14 Thread Daevid Vincent
The only way I could think of is to have a column that's an auto updated timestamp and then just query using that time. `updated_on` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP So for your mass update, I'd SET @updated_time = NOW(); and then you could use that in

Re: list rows with no recent updates

2010-06-14 Thread Jim Lyons
Do you have a timestamp field on this table? There's no way of seeing when a row was last updated unless you have a timestamp field that automatically updates for any change (that's *any* change - not necessarily the ones you want to keep track of) or creating your own and updating them either on

Re: list rows with no recent updates

2010-06-14 Thread MadTh
Hi, Thank you all for your prompt response. Unfortunately timestamp file isn;t there, so I will find some other way to do it. Seems timestamp is a valuable field ( unless you want to save resource on generating timestamps on a very busy table). Thanks

RE: list rows with no recent updates

2010-06-14 Thread Daevid Vincent
Easy enough to rectify http://dev.mysql.com/doc/refman/5.0/en/alter-table.html ALTER TABLE `tbl_xyz` ADD COLUMN `updated_on` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER `prod_id`; Personally I put a 'created_on' and an 'updated_on' column for mostly every

alias problem and odd warnings

2010-06-14 Thread brian
Using 5.1.41/Ubuntu I have 2 tables, members countries. The former has a column, country_id (tinyint(3) unsigned). The countries id column is the same (although auto_increment). I'm trying to select just those countries for which there is a member. So I decided this query should do the

Re: alias problem and odd warnings

2010-06-14 Thread brian
On 10-06-14 09:13 PM, brian wrote: Using 5.1.41/Ubuntu I have 2 tables, members countries. The former has a column, country_id (tinyint(3) unsigned). The countries id column is the same (although auto_increment). I'm trying to select just those countries for which there is a member. So I

normalization

2010-06-14 Thread bharani kumar
Frankly speaking , Am looking very simple example for 5NF , Even i looked the lot of site , in most of the site they given clear information upto 3NF , But can u please tell me , 5NF with example, Regards Bharanikumar