How to implement following create table (mysql) using django model.

CREATE TABLE account_transaction (
account_id INT NOT NULL,
acct_trans_number INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (account_id,acct_trans_number)
);



The above is mysql script.  Acct_trans_number has to be unique and
sequential within an account id.
 this the only way it can be achieved in mysql as far as I am aware.

How  to do it using Django models?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to