Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 74413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:21:16+00:00 2026-05-10T20:21:16+00:00

Given a table named person (in a MySQL database/schema), kind of like this one:

  • 0

Given a table named ‘person’ (in a MySQL database/schema), kind of like this one:

code varchar(25)   lastname varchar(25)   firstname varchar(25)   

I’m trying to make a stored function to receive ‘code’ or a part of ‘code’ (which of course, is the code that identifies that person) and return a ‘list’ of suggestions of persons that have a similar code.

What I’m not sure is how to search like in an auto complete kind of way, returning all possible results (or just five); and also how to return this ‘list’ of persons from the stored procedure.

Any idea how I could do this?, Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:21:16+00:00Added an answer on May 10, 2026 at 8:21 pm

    You can use wild cards in SQL. Is this what you are looking for?

    SELECT * FROM person WHERE code LIKE '%part_of_code%' 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the follwing: SQL Tables: Names ----- Id (int) FirstName (varchar) LastName (varchar) NameProperties
Given this SQL: DECLARE @content XML SET @content = '<people> <person id=1 bimble=1> <firstname
Given a table like this: [Last Name] [First Name] [DepartmentID] --------------------------------------- Doe John 1
Given a database schema with a parent table and two or more child tables.
Given the following table on sheet one: Name ------- Alan Barb Corey Barb Alan
Given table: ID ONE TWO X1 15 15 X2 10 - X3 - 20
create table [User] ( UserId int primary key identity(1,1), FirstName nvarchar(256) not null, LastName
This one seems so simple, but I must be missing something... Given this SQL:
Simple MySQL tables with matching ID values across tables: table 1; pid, firstname table
I want to have a database table that keeps data with revision history (like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.