--- title: "Literals in ODBC | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual helpviewer_keywords: - "literals [ODBC]" - "ODBC literals [ODBC], about literals" - "ODBC literals [ODBC]" - "literals [ODBC], about literals" ms.assetid: e66e9ab8-6dcc-47e2-bcb6-efdb324a1d3b author: David-Engel ms.author: v-daenge --- # Literals in ODBC The syntax in the following sections is used for interval and numeric literals in ODBC. This syntax is provided here as an aid to driver writers when conversions are performed from a character string type to a numeric or interval type, or from a numeric or interval type to a character string type. For more information, see [Interval Literals](../../../odbc/reference/appendixes/interval-literals.md) and [Numeric Literals](../../../odbc/reference/appendixes/numeric-literals.md) in Appendix D: Data Types. This appendix contains the following topics. - [Interval Literal Syntax](../../../odbc/reference/appendixes/interval-literal-syntax.md) - [Numeric Literal Syntax](../../../odbc/reference/appendixes/numeric-literal-syntax.md)