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.

boolscher wert bei MS-Acces

Empfohlene Antworten

Veröffentlicht

hoi

möchte in MS-Acces durch SQL-Anweisungen eine tabelle erzeugen, hab aber ein Problem mit dem Datentyp bool!

kenn den Acces nicht??

bsp:

CREATE TABLE Besucher

(PlatzNr INTEGER NOT NULL PRIMARY KEY,

Name CHAR(20) NOT NULL,

Zahlungsart CHAR(20) NOT NULL,

Bezahlt BOOL);

bei feld bezahlt, motzt er,

was muss ich für einen wahrheitswert als typ schreiben?

ich hoffe ihr könnt mir helfen

PS: es eilt!

danke

cu

didii

.... vielleicht nicht "BOOL", sondern "BIT"? So geht das zumindest beim MSSQL-Server, und der stammt ja auch aus dem Hause ***...

Gruss,

der Onkel

oder BOOLEAN

Hallo,

probier es doch mal hiermit:

CREATE TABLE Besucher

(PlatzNr INT NOT NULL,

Name CHAR(20) NOT NULL,

Zahlungsart CHAR(20) NOT NULL,

Bezahlt char(1),

Constraint PlatzNr Primary Key(PlatzNr));

In MS Access gibt es leider keinen Datentyp Boolean soweit ich weiß...

Daher würde ich vorschlagen, dass du einfach den Datentyp char(1) verwendest und eine 1 für True und 0 für False verwendest. :)

Gruß, Jusky

Original geschrieben von Jusky

In MS Access gibt es leider keinen Datentyp Boolean soweit ich weiß...

Daher würde ich vorschlagen, dass du einfach den Datentyp char(1) verwendest und eine 1 für True und 0 für False verwendest.

Doch, BIT funktioniert, zumindest vom VBA aus in einem DoCmd.RunSQL. Von einer anderen Programmiersprache aus hab ich das allerdings nicht probiert.

Aber das mit dem char(1) ist natürlich auch eine Möglichkeit :)

Stimmt... BIT geht auch... Habe es grade mal ausprobiert!

Jetzt bin ich auch um einiges schlauer! ;)

Bit ist universell !

Kannst mit C++ und Delphi auch prima drauf zugreifen !

:)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.