Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo, ich habe wieder mal ein kleines problem:

ich habe folgende querys:

CREATE TABLE IF NOT EXISTS BlockLog(id int AUTO_INCREMENT NOT NULL,blockbreaker VARCHAR (30) NOT NULL,block int NOT NULL,x INT NOT NULL,y INT NOT NULL,z INT NOT NULL,world VARCHAR(20) NOT NULL,how TINYINT(7),timest TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,PRIMARY KEY(id));


CREATE TABLE IF NOT EXISTS ChatLog(id INT NOT NULL AUTO_INCREMENT,player VARCHAR(30) NOT NULL,message TEXT NOT NULL,command TINYINT(1) not null,timest TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,PRIMARY KEY(id));

Nun führe ich diese in MySql aus und es geht ohne probleme, in Sqlite allerdings funktioniert der 2te query nicht.

[sqlITE_ERROR] SQL error or missing database

(near "AUTO_INCREMENT": syntax error)

nun wüsste ich gerne, warum das nicht geht

kann man in eine .db datei nur eine tabelle schreiben?

ok danke, habs hinbekommen :)

schade das es nicht einfach einen datenbank standart gibt, dann wäre das ganze viel einfacher^^

ich benütze datenbanken in verbindung mit php,java und c++, es ist die beste um daten zu speichern die ähnlich aufgebaut werden.

Leider hab ich noch keine gute bibliothek für die anderen 2 sprachen geunden, falls du eine kennst ich wäre sehr dankbar

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.