Open topic with navigation

TIBCO ActiveSpaces® - Enterprise Edition 5.0.0

# Adding Rows to a Table by Using the SQL INSERT Statement

Procedure
1. Formulate a SQL INSERT string for adding rows of data to a table.
2. Call the `createStatement()` method of the `Session` object. Pass the SQL INSERT string as an argument.
3. If the SQL INSERT string contains parameter markers, call the `Statement` methods to set the parameter values.
4. Run the INSERT statement by calling the `executeUpdate()` method of the `Statement` object.
5. Check the result of the `executeUpdate()` method to verify that the correct number of rows have been inserted into the table.
6. Set different parameter values and rerun the INSERT statement by repeating steps 3 to 5.
7. Close the `Statement` object.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO ActiveSpaces® - Enterprise Edition

Copyright © 2009-2025. Cloud Software Group, Inc. All Rights Reserved.