Yes, Both have a field called ID, that is primary. Here is the Table creation code:
    $sql = "create table login (
	id MEDIUMINT NOT NULL AUTO_INCREMENT,
	created DATE,
        tec_id VARCHAR(15),
	type VARCHAR(50),
	password VARCHAR(100),
	stage_name VARCHAR(150),
	last_log DATE,
	last_time TIME,
        active VARCHAR(3),
        banned VARCHAR(3),
	PRIMARY KEY (id),
	INDEX (`tec_id` ASC),
	INDEX (`type` ASC),
	INDEX (`stage_name` ASC),
	INDEX (`last_log` ASC)
	) ENGINE=MyISAM;";

AND

    $sql = "create table user (
	id MEDIUMINT NOT NULL AUTO_INCREMENT,
	tec_id VARCHAR(15) NOT NULL UNIQUE,
        created DATE,
	agent_id VARCHAR(15),
	type VARCHAR(50),
	approved DATE,
	dob DATE,
	age_create VARCHAR(3),
	first_name VARCHAR(100),
	last_name VARCHAR(100),
	address_01 VARCHAR(150),
	address_02 VARCHAR(150),
	country VARCHAR(50),
	state VARCHAR(50),
	city VARCHAR(50),
	zip CHAR(12),
	referring_user VARCHAR(15),
        referring_code VARCHAR(100),
	terms_accept VARCHAR(3),
	terms_initials VARCHAR(5),
	terms_date DATE,
	rate VARCHAR(5),
	PRIMARY KEY (id),
	INDEX (`tec_id` ASC),
	INDEX (`city` ASC),
	INDEX (`type` ASC)
	) ENGINE=MyISAM;";

In reply to Re^2: MySQL-pp, Perl and MySQL Triggers by skosterow
in thread MySQL-pp, Perl and MySQL Triggers by skosterow

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.