ceyesuma -4 Posting Pro

Using java and netbeans to write a query
How does the (:) colon change this String?

String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\"");
String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + :like + "%\"");
Be a part of the DaniWeb community

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