您好我一直在尝试在SQlite中创建一些多个表并将它们链接在一起。谁能告诉我哪里出错了?我是Java的新手,我希望有些人可以帮助我!感谢....
# modprobe dahdi
# dahdi_scan
# dahdi_cfg -c dahdi.conf
# dahdi_scan
[1]
active=yes
alarms=OK
description=Dynamic 'loc' span at '1:0'
name=DYN/loc/1:0
manufacturer=
devicetype=DYN/loc/1:0
location=
basechan=1
totchans=24
irq=0
type=digital-DYNAM
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=
framing=CAS
[2]
active=yes
alarms=OK
description=Dynamic 'loc' span at '1:1'
name=DYN/loc/1:1
manufacturer=
devicetype=DYN/loc/1:1
location=
basechan=25
totchans=24
irq=0
type=digital-DYNAM
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=
framing=CAS
[3]
active=yes
alarms=OK
description=Dynamic 'loc' span at '2:2'
name=DYN/loc/2:2
manufacturer=
devicetype=DYN/loc/2:2
location=
basechan=49
totchans=2
irq=0
type=digital-DYNAM
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=
framing=CAS
[4]
active=yes
alarms=OK
description=Dynamic 'loc' span at '2:3'
name=DYN/loc/2:3
manufacturer=
devicetype=DYN/loc/2:3
location=
basechan=51
totchans=2
irq=0
type=digital-DYNAM
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=
framing=CAS
答案 0 :(得分:2)
您不要在标识符和关键字之间留空格:
CREATE TABLEUSER(COLUMNUIDINTEGER PRIMARY KEY AUTOINCREMENT,COLUMN_USERNAMETEXT,
COLUMN_EMAILTEXT,FOREIGN KEY(COLUMNUID) REFERENCES TABLESESSIONS(COLUMNSESSIONUID))
应该是:
CREATE TABLE USER(COLUMNUID INTEGER PRIMARY KEY AUTOINCREMENT,
COLUMN_USERNAME TEXT,..
答案 1 :(得分:2)
public static final String SQLCREATETABLEUSER = "CREATE TABLE " + TABLEUSER // complete the rest
对其他查询也这样做,我希望这会起作用