Skip to primary content
Skip to secondary content

Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky

Java/J2EE Software Development and Technology Discussion Blog

Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky

Main menu

  • Home
  • Java 17 Books
    • Java OCP 17 Developer Complete Study Guide
    • Java OCP 17 Practice Tests
  • Java 11 Books
    • The 1Z0-819 Exam
    • Java OCP 11 Developer Complete Study Guide
    • Java OCP 11 Practice Tests
    • Java OCP 11 Programmer I Study Guide
    • Java OCP 11 Programmer II Study Guide
  • Java 8 Books
    • Java OCA 8 Programmer I Study Guide
    • Java OCP 8 Programmer II Study Guide
    • OCA / OCP Java SE 8 Programmer Certification Kit
    • Java OCA/OCP 8 Programmer Practice Tests
    • Java Foundations Exam
  • About Scott
  • About Jeanne

Tag Archives: text-block

text blocks with JDBC

Posted on September 26, 2021 by Jeanne Boyarsky
Reply

I got a twitter request to show using text blocks with JDBC. Here you go:

 run(conn, """
                CREATE TABLE names (
                   id INTEGER PRIMARY KEY,
                   species_id integer REFERENCES exhibits (id),
                   name VARCHAR(255))""");

The key is what isn’t here. No sprint concatentation. No escaping. Just clear text

Share this:

  • Email
  • Facebook
  • Tumblr
  • Reddit
  • Print
  • LinkedIn
  • Twitter
Posted in JDBC | Tagged java, text-block | Leave a reply
March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Jan    

Topics

  • Accessibility (5)
  • Android (3)
  • Announcements (6)
  • Apple Mac (24)
  • AWS (12)
  • Blog (8)
  • Conferences (303)
  • Database (25)
  • Development Process (75)
  • FIRST Robotics (23)
  • Flash/Flex (9)
  • Google Chrome (10)
  • Groovy (3)
  • GWT (5)
  • Java Certification (64)
  • Java/Java EE (285)
  • JavaRanch (33)
  • JDBC (19)
  • Jenkins (6)
  • JUnit 5 (9)
  • OCA Book (31)
  • OCP Book (29)
  • OnlineEd (5)
  • PowerPoint (2)
  • Practice Exam Book (5)
  • Reviews (8)
  • Soft Skills (5)
  • SonarQube (1)
  • Technology (103)
  • Toastmasters (26)
  • Uncategorized (2)
  • Web (21)
  • WTFs (9)

Recent Posts

  • the value of a “talking stick”
  • playing with chatgpt – new years eve edition
  • playing with chatgpt
  • scheduling toots on mastodon
  • My first month on Mastodon
  • Happy Book Birthday! OCP 17 Practice Tests
  • my first ever time on the big stage at javaone
  • [2022 javaone] jakarta ee panel
  • [2022 javaone] hands on lab project loom
  • [2022 javaone] foundations of modern java server apps

Feeds

RSS feed RSS - Posts

Proudly powered by WordPress