Difference between revisions of "Create hypertable"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  SELECT [[create_hypertable]]('conditions', 'time');
+
{{lc}}
 +
  [[SELECT]] create_hypertable('conditions', 'time');
  
 +
== Official example ==
 +
CREATE TABLE conditions ( -- create a regular table
 +
  time        TIMESTAMPTZ      NOT NULL,
 +
  location    TEXT              NOT NULL,
 +
  temperature  DOUBLE PRECISION  NULL
 +
);
  
 +
SELECT create_hypertable('conditions', 'time'); -- turn it into a hypertable
  
 +
== Errors ==
 +
* <code>[[ERROR]] #42883 function create_hypertable(unknown, unknown) does not exist</code>
  
 +
== See also ==
 
* {{Timescale}}
 
* {{Timescale}}
 +
 +
[[Category:Timescale]]

Latest revision as of 12:53, 1 March 2024

SELECT create_hypertable('conditions', 'time');

Official example[edit]

CREATE TABLE conditions ( -- create a regular table
 time         TIMESTAMPTZ       NOT NULL,
 location     TEXT              NOT NULL,
 temperature  DOUBLE PRECISION  NULL
);
SELECT create_hypertable('conditions', 'time');	-- turn it into a hypertable

Errors[edit]

  • ERROR #42883 function create_hypertable(unknown, unknown) does not exist

See also[edit]

Advertising: