DEV Community

Judy
Judy

Posted on

2 1 1 1 1

Getting a member according to primary key value #eg59

In the following product category table, ID field is the primary key. The task is to find the member whose ID field value is 5.

Image description
SPL script:

Image description
A1 Connect to the database;
A2 Retrieve Category table from the database and set ID as the primary key;
A3 Find the record whose primary key value is 5. If the
desired primary key value does not exist or no primary key is defined, pfind() function returns null.

SPL open source address

Download

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post