Skip to main content
Tweeted twitter.com/#!/StackDBAs/status/647707254729351168
deleted 1 character in body
Source Link
will
  • 43
  • 1
  • 5

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, sensor VARCHAR (10) NOT NULL, date timestamp(6) default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) default current_timestamp(6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, sensor VARCHAR (10) NOT NULL, date timestamp(6) default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) default current_timestamp(6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, sensor VARCHAR (10) NOT NULL, date timestamp(6) default current_timestamp(6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) default current_timestamp(6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

added 34 characters in body
Source Link
will
  • 43
  • 1
  • 5

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, VARCHAR sensor VARCHAR (10) NOT NULL, date timestamp(6) default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual que Correspondsthat corresponds to your MySQL server version for the right syntax to use near '6'(6) default current_timestamp(6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, VARCHAR sensor (10) NOT NULL, date timestamp default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual que Corresponds to your MySQL server version for the right syntax to use near '6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, sensor VARCHAR (10) NOT NULL, date timestamp(6) default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) default current_timestamp(6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

edited body
Source Link
will
  • 43
  • 1
  • 5

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description hereenter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, VARCHAR sensor (10) NOT NULL, date timestamp default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual que Corresponds to your MySQL server version for the right syntax to use near '6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, VARCHAR sensor (10) NOT NULL, date timestamp default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual que Corresponds to your MySQL server version for the right syntax to use near '6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

Problem: How can I subtract the TIMEDIFF between two sensors (sensor 1 and sensor 2 in the example below) and return the the value in mili seconds?

enter image description here

How do I get with the resolution of milliseconds?

I am using the command line below to try to create the table with milliseconds resolution but returns error.

CREATE TABLE via1 ( id int auto_increment primary key, VARCHAR sensor (10) NOT NULL, date timestamp default current_timestamp (6) ); 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual que Corresponds to your MySQL server version for the right syntax to use near '6))' at line 1

Server version: 5.5.44-0 + deb7u1 (Debian)

added 86 characters in body
Source Link
will
  • 43
  • 1
  • 5
Loading
Incorporated information from a comment on an answer
Source Link
Paul White
  • 96.1k
  • 30
  • 442
  • 691
Loading
added 7 characters in body
Source Link
will
  • 43
  • 1
  • 5
Loading
deleted 182 characters in body; edited title
Source Link
Paul White
  • 96.1k
  • 30
  • 442
  • 691
Loading
added a bit about the sensor/line/column relationshipe in regards to subtraction.
Source Link
Loading
Best guess translation based on my knowledge of Spanish
Source Link
will
  • 43
  • 1
  • 5
Loading
Source Link
will
  • 43
  • 1
  • 5
Loading