sql server - SQLServer Stored Procedure -


I would like to hear that any of you have an idea of ​​doing the following: I have a table with some cardiffination [ Id] [Company] [Mode], this example may be the Audi 100, Ford Mastan etc. Then I have another field which is a string with both car and model, it can be "Ford Mustang 2.5T", then I need to find the correct ID from Cardiffin. I am doing

  @CarDefintion = "Ford Mustang 2.5 T" Select Top 1 from CarDefinitionId where dbo.CarModelDefinition happens (model, @cardfinition) and includes (company, @CardiffNinance)  

But since the ideal + company is not exclusive, I get this error: "Using a CONTAINS or FREETEXT predicate on table or indexed view 'dbo.CarModelDefinition' Can not be done because it is not full-text indexed. Does anyone It shows how I can solve it?

Find the string with the wildcarded column Using like using

@CarDefintion = "Ford Mustang 2.5T" Select Top 1 Car Definition Ed dbo.CarModelDefinition from where @Cardefinition '%' + 'Model' + '%' and @Cardefinition '%' + Company + '%';

+ is string citation operator.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -