String query = "create table emails " +
                       "(ID int, " +
                       "To varchar(20), " +
                       "From varchar(20), " +
                       "Message varchar(50))";

                   this java statment looks right. but getting a syntax error.

Recommended Answers

TO is a reserved word in SQL.

Jump to Post

All 2 Replies

TO is a reserved word in SQL.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.