1 頁 (共 1 頁)

[問題]請問有關於i-Cash Mod

發表於 : 2004-11-25 21:04
A.Han
#-----[ SQL ]--------------------------------------------
#
ALTER TABLE phpbb_users ADD user_money mediumint(8) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD user_points mediumint(8) DEFAULT '0' NOT NULL;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icash_money', '金錢');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icash_points', '積分');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icash_money_reply', '5');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icash_points_reply', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icash_money_newtopic', '10');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icash_points_newtopic', '2');

CREATE TABLE phpbb_icash_log (
log_id mediumint(8) NOT NULL auto_increment,
log_affort mediumint(8) NOT NULL default '0',
log_value mediumint(8) NOT NULL default '0',
log_reason varchar(255) NOT NULL default '',
log_user mediumint(8) NOT NULL default '0',
log_time varchar(255) NOT NULL default '',
log_to mediumint(8) NOT NULL default '0',
log_cash mediumint(8) NOT NULL default '0',
PRIMARY KEY (log_id)
);

#

請問這ㄍ是要放在哪裡??

發表於 : 2004-11-25 21:24
吉川拓也
這個是要在你的資料庫內輸入該資料新增欄位 !
可以參考這篇 :
http://phpbb-tw.net/phpbb/viewtopic.php?t=23325

發表於 : 2005-01-05 01:14
小猛
我貼上去了!! 但是他說錯誤..請問一下什麼問題ㄚ

SQL 語法:

#
ALTER TABLE phpbb_users ADD user_money mediumint( 8 ) DEFAULT '0' NOT NULL
MySQL 傳回:

#1060 - Duplicate column name 'user_money'