Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
09.07.2010, 19:35
|
|||
---|---|---|---|
|
|||
I'm new in sqlite3: plz help me |
|||
#18+
CREATE TABLE ceos (name string unique, salary integer, politics string); ... sqlite> select * from ceos; name salary politics ---------- ---------- ---------- Jack Welch 1000000 Republican Carly Fior 5000000 Republican Erik Schmi 400000 Democrat Lee Iacocc 3 Democrat Kim Polese 600000 Republican CREATE TABLE recorded_salary_changes (id integer primary key autoincrement, content text, time_of datetime, change_by string); CREATE TRIGGER record_salary_changes update on ceos begin insert into recorded_salary_changes(id, content, time_of, changе_by) values(null, "name: " || old.name ||", old salary: " || old.salary || ", new salary: " || new.salary, datetime('now'), "Flunkie"); end; sqlite> update ceos set salary=999 where name="Lee Iacoca"; Error: table main.recorded_salary_changes has no column named changе_by What the problem?, i have column names change_by, is it bug???. ... |
|||
:
Нравится:
Не нравится:
|
|||
|
09.07.2010, 21:29
|
|||
---|---|---|---|
|
|||
I'm new in sqlite3: plz help me |
|||
#18+
zackushka, there is no mistakes in first column, they was just truncate. ... |
|||
:
Нравится:
Не нравится:
|
|||
|
09.07.2010, 21:30
|
|||
---|---|---|---|
|
|||
I'm new in sqlite3: plz help me |
|||
#18+
zackushka, help ... |
|||
:
Нравится:
Не нравится:
|
|||
|
09.07.2010, 21:41
|
|||
---|---|---|---|
I'm new in sqlite3: plz help me |
|||
#18+
Check the spelling of field. Beware that some Cyrillic symbols looks exactly like Latin ones. If you hate Russian so much, you should learn English better. ... |
|||
:
Нравится:
Не нравится:
|
|||
|
09.07.2010, 22:00
|
|||
---|---|---|---|
|
|||
I'm new in sqlite3: plz help me |
|||
#18+
White OwlCheck the spelling of field. Beware that some Cyrillic symbols looks exactly like Latin ones. If you hate Russian so much, you should learn English better. Как умею, так и пишу на английском. Спасибо. Модератор: желтая карточка: пишите на русском, так как вам это доступно ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=54&mobile=1&tid=2009318]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
62ms |
get topic data: |
13ms |
get forum data: |
2ms |
get page messages: |
46ms |
get tp. blocked users: |
2ms |
others: | 14ms |
total: | 173ms |
0 / 0 |