Skip to main content

Sink data from RisingWave to TiDB with the JDBC connector

As TiDB is compatible with MySQL, you can sink data to TiDB the same way you would sink data to MySQL with the JDBC connector.

For the syntax, settings, and examples, see Sink data from RisingWave to MySQL with the JDBC connector.

Data type mapping

The following table shows the corresponding data types between RisingWave and TiDB. For details on native RisingWave data types, see Overview of data types.

TiDB typeRisingWave type
BOOLEANBOOLEAN
TINYINTSMALLINT
SMALLINTSMALLINT
MEDIUMINTINT
BIGINTBIGINT
FLOATREAL
DOUBLEDOUBLE
DECIMALDECIMAL
DATEDATE
DATETIMETIMESTAMP
TIMETIME
TIMESTAMPTIMESTAMP
CHARVARCHAR
BINARYBYTEA
VARBINARYBYTEA
BLOBBYTEA
TEXTTEXT
JSONJSONB

Help us make this doc better!

Was this page helpful?

Happy React is loading...