<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[msql database]]></title><description><![CDATA[<p dir="auto">ciao a tutti sto creando un database msql e ho questo problemino...:(premetto che e' il mio primo database)Praticamente mi da questo errore:</p>
<p dir="auto">CREATE TABLE <code>banner_imp</code> (<br />
<code>banner_id</code> INT( 4 ) UNSIGNED NOT NULL AUTO_INCREMENT ,<br />
<code>count</code> INT( 5 ) UNSIGNED NULL DEFAULT '0',<br />
<code>click_date</code> DATE NOT NULL DEFAULT '0000-00-00',<br />
<code>banner_id,click_date</code> VARCHAR( 10 ) NULL ,<br />
PRIMARY KEY ( <code>banner_id,click_date</code> )<br />
) TYPE = MYISAM</p>
<p dir="auto">Messaggio di MySQL: Documentazione<br />
#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key</p>
<p dir="auto">il mio risultato giusto in base allo script pronto che ho dovrebbe essere questo:</p>
<p dir="auto">CREATE TABLE banner_imp (<br />
banner_id int(4) unsigned NOT NULL auto_increment,<br />
count int(5) unsigned default '0',<br />
click_date date NOT NULL default '0000-00-00',<br />
PRIMARY KEY  (banner_id,click_date)<br />
) TYPE=MyISAM;</p>
<p dir="auto">Se potete darmi una dritta ve ne sare molto grato,altrimenti..:strippo!!!ciao grazie</p>
]]></description><link>https://dev.connect.gt/topic/47129/msql-database</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 19:19:32 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/47129.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Sep 2007 10:33:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to msql database on Mon, 17 Sep 2007 15:05:45 GMT]]></title><description><![CDATA[<p dir="auto">ma non si scrive "auto increment" al posto di "auto_increment"?</p>
]]></description><link>https://dev.connect.gt/post/602071</link><guid isPermaLink="true">https://dev.connect.gt/post/602071</guid><dc:creator><![CDATA[skyline]]></dc:creator><pubDate>Mon, 17 Sep 2007 15:05:45 GMT</pubDate></item><item><title><![CDATA[Reply to msql database on Mon, 17 Sep 2007 14:50:01 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>alver</strong></p>
<p dir="auto">Messaggio di MySQL: Documentazione<br />
#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key</p>
</blockquote>
<p dir="auto">Se ricordo bene, AUTO_INCREMENT è ammesso solo come colonna secondaria di una chiave.</p>
<p dir="auto">Prova così:</p>
<pre><code>CREATE TABLE banner_imp (
banner_id int(4) unsigned NOT NULL auto_increment,
count int(5) unsigned default '0',
click_date date NOT NULL default '0000-00-00',
PRIMARY KEY (click_date,banner_id)
) ENGINE=MyISAM;
</code></pre>
<p dir="auto">Non ho modo di provarlo, potrebbe non funzionare...fammi sapere <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/post/602074</link><guid isPermaLink="true">https://dev.connect.gt/post/602074</guid><dc:creator><![CDATA[joker197cinque]]></dc:creator><pubDate>Mon, 17 Sep 2007 14:50:01 GMT</pubDate></item><item><title><![CDATA[Reply to msql database on Mon, 17 Sep 2007 11:51:13 GMT]]></title><description><![CDATA[<p dir="auto">si ma se io inserisco</p>
<p dir="auto"><strong>campo</strong>             <strong>tipo   lunghezza   collocation  attributi   null  pred..   extra</strong><br />
(banner_id)       .....    ......             ......           .....        ...   ...         ....</p>
<p dir="auto">ad esempio nela colonna tipo cosa devo mettere   ...e alla fine spunto chiave principale ..giusto??</p>
<p dir="auto">se metto solo un campo e spunto chiave principale mi chiede di inserire un numero nel terzo  campo"lunghezza" perche nel secondo mi rimane di defult VARCAR</p>
]]></description><link>https://dev.connect.gt/post/602076</link><guid isPermaLink="true">https://dev.connect.gt/post/602076</guid><dc:creator><![CDATA[alver]]></dc:creator><pubDate>Mon, 17 Sep 2007 11:51:13 GMT</pubDate></item><item><title><![CDATA[Reply to msql database on Mon, 17 Sep 2007 11:44:51 GMT]]></title><description><![CDATA[<p dir="auto">Mi sono spiegato male<br />
In Primary Key puoi definire solo un campo</p>
<p dir="auto">Ad esempio:    PRIMARY KEY  (member_id);</p>
]]></description><link>https://dev.connect.gt/post/602056</link><guid isPermaLink="true">https://dev.connect.gt/post/602056</guid><dc:creator><![CDATA[gorka]]></dc:creator><pubDate>Mon, 17 Sep 2007 11:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to msql database on Mon, 17 Sep 2007 11:36:41 GMT]]></title><description><![CDATA[<p dir="auto">intanto gorca ..grazie mille ,mi sapresti indicare come buttarla giu nella cartella del database:o,per avere il risultato che vedi nel secondo esempio...??</p>
<p dir="auto">io creo una nuova tabella denominata" banner_imp"con 4 campi :giusto!! poi</p>
<p dir="auto">member_id    varchar   (50) binary  NOT NULL<br />
banner_id       int        (4) unsigned NOT NULL default 0<br />
click_date     date                        NOT NULL default 0000-00-00</p>
<p dir="auto">il problema e' questa striga qua ,come la devo indserire nelle varie colonne per averla come nell primo esempio</p>
<p dir="auto">PRIMARY KEY  (member_id,banner_id,click_date)</p>
]]></description><link>https://dev.connect.gt/post/602075</link><guid isPermaLink="true">https://dev.connect.gt/post/602075</guid><dc:creator><![CDATA[alver]]></dc:creator><pubDate>Mon, 17 Sep 2007 11:36:41 GMT</pubDate></item><item><title><![CDATA[Reply to msql database on Mon, 17 Sep 2007 11:17:27 GMT]]></title><description><![CDATA[<p dir="auto">Puoi dichiarare una sola primary key, tu stai tentando di metterne due</p>
]]></description><link>https://dev.connect.gt/post/602055</link><guid isPermaLink="true">https://dev.connect.gt/post/602055</guid><dc:creator><![CDATA[gorka]]></dc:creator><pubDate>Mon, 17 Sep 2007 11:17:27 GMT</pubDate></item></channel></rss>