Skip to main content
changed title
Link
Xirb
  • 31
  • 6

Arduino extended database library data type. Is char str[] in Arduino the equivalent of VARCHAR in SQL?

deleted 11 characters in body; edited title
Source Link
dda
  • 1.6k
  • 1
  • 12
  • 18

Arduino Extended Database Library Data Typeextended database library data type. Is the char str[] the equivalent of VARCHAR?

I am new to Arduino and I am currently working onwith an Arduino UNOUno and SD Card Modulecard module - SD/MMC for database storage using the Arduino database library from https://github.com/jwhiddon/EDB.

My question is the char str[] equivalent of VARCHAR?

Here My question is, is the char str[] type the equivalent of VARCHAR?

Here is my arbitrary record definition for my table:

struct LogEvent { 
  int logId;
  int unumber;
  char username[10];
  char fname[15]; 
  char lname[15];
  char role[6];
  char boxid[10];
  char userStatus[2];
} logEvent;

Arduino Extended Database Library Data Type. Is the char str[] the equivalent of VARCHAR?

I am new to Arduino and I am currently working on Arduino UNO and SD Card Module - SD/MMC for database storage using the Arduino database library from https://github.com/jwhiddon/EDB.

My question is the char str[] equivalent of VARCHAR?

Here is my arbitrary record definition for my table:

struct LogEvent { 
  int logId;
  int unumber;
  char username[10];
  char fname[15]; 
  char lname[15];
  char role[6];
  char boxid[10];
  char userStatus[2];
} logEvent;

Arduino extended database library data type. Is char str[] the equivalent of VARCHAR?

I am new to Arduino and I am currently working with an Arduino Uno and SD card module - SD/MMC for database storage using the Arduino database library from https://github.com/jwhiddon/EDB.

My question is, is the char str[] type the equivalent of VARCHAR?

Here is my arbitrary record definition for my table:

struct LogEvent { 
  int logId;
  int unumber;
  char username[10];
  char fname[15]; 
  char lname[15];
  char role[6];
  char boxid[10];
  char userStatus[2];
} logEvent;
Source Link
Xirb
  • 31
  • 6

Arduino Extended Database Library Data Type. Is the char str[] the equivalent of VARCHAR?

I am new to Arduino and I am currently working on Arduino UNO and SD Card Module - SD/MMC for database storage using the Arduino database library from https://github.com/jwhiddon/EDB.

My question is the char str[] equivalent of VARCHAR?

Here is my arbitrary record definition for my table:

struct LogEvent { 
  int logId;
  int unumber;
  char username[10];
  char fname[15]; 
  char lname[15];
  char role[6];
  char boxid[10];
  char userStatus[2];
} logEvent;