Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sql function to make noun plural

Is there any function in SQL Server which change the noun from singular to plural form?

like image 967
PsCraft Avatar asked Jan 30 '12 15:01

PsCraft


2 Answers

SQL itself doesn't have anything like this - but you could try to use the .NET PluralizationService introduced in .NET 4 - the same functionality that the Entity Framework uses to pluralize/singularize table names to object names.

You would have to write a SQL-CLR assembly to tap into the pluralization services, but it definitely seems like a doable thing!

like image 200
marc_s Avatar answered Oct 03 '22 00:10

marc_s


That function does not exist in SQL Server.

like image 39
aF. Avatar answered Oct 02 '22 23:10

aF.