Update index.html

create table t (ts timestamp, speed int); // fix 'cdata' to 'speed'
This commit is contained in:
ATR 2019-12-09 19:14:46 +08:00 committed by GitHub
parent 282d99cd43
commit 72aef9078d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
<p>In the TDengine shell, you can create databases, create tables and insert/query data with SQL. Each query command ends with a semicolon. It works like MySQL, for example:</p> <p>In the TDengine shell, you can create databases, create tables and insert/query data with SQL. Each query command ends with a semicolon. It works like MySQL, for example:</p>
<pre><code class="mysql language-mysql">create database db; <pre><code class="mysql language-mysql">create database db;
use db; use db;
create table t (ts timestamp, cdata int); create table t (ts timestamp, speed int);
insert into t values ('2019-07-15 10:00:00', 10); insert into t values ('2019-07-15 10:00:00', 10);
insert into t values ('2019-07-15 10:01:05', 20); insert into t values ('2019-07-15 10:01:05', 20);
select * from t; select * from t;