Pooja11 Posted March 26, 2014 Share Posted March 26, 2014 In my database I have a column which contain location of a file. The column contains entries like - scripts/testSuite/sdnSTC/Flare/Backup_Restore/Sprint16_tests/BackupHugeDatabase.tcl scripts/testSuite/sdnSTC/Flare/Backup_Restore/Standalone_backup/Backup_Restore_BackupRestoreApplications.tcl scripts/testSuite/networkSecurity/802dot1x/802dot1xConfiguration/802dot1xBasicUserMode.tcl scripts/testSuite/hostAgentFeatures/debugLogging/debugLoggingFeatureTesting/DebugLoggingIPv6Forwarding.tcl I want to query this database and check for the values like networkSecurity, hostAgentFeatures etc at the specified index 2. I tried using REGEXP and LIKE but it does not always returns the correct output. Also my DB doesn't support FULLTEXT indexes Is there a way to specify index in MySQL ? Please guide. Link to comment https://forums.phpfreaks.com/topic/287283-how-to-specify-index-in-the-db-query-for-the-string-in-a-column/ Share on other sites More sharing options...
fenway Posted March 27, 2014 Share Posted March 27, 2014 You can do magic with SUBSTRING_INDEX and POSITION, but I'm not sure you want to. Link to comment https://forums.phpfreaks.com/topic/287283-how-to-specify-index-in-the-db-query-for-the-string-in-a-column/#findComment-1474172 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.